3 test_description
='git remote group handling'
12 echo content
>>file &&
14 git commit
-F ..
/mark
)
23 if test "`git log -1 --pretty=format:%s $1 --`" = "`cat mark`"; then
24 echo >&2 "repo was fetched: $1"
27 echo >&2 "repo was not fetched: $1"
31 test_expect_success
'setup' '
32 mkdir one && (cd one && git init) &&
33 mkdir two && (cd two && git init) &&
34 git remote add -m master one one &&
35 git remote add -m master two two
38 test_expect_success
'no group updates all' '
46 test_expect_success
'nonexistant group produces error' '
49 test_must_fail git remote update nonexistant &&
54 test_expect_success
'updating group updates all members' '
57 git config --add remotes.all one &&
58 git config --add remotes.all two &&
59 git remote update all &&
64 test_expect_success
'updating group does not update non-members' '
67 git config --add remotes.some one &&
68 git remote update some &&
73 test_expect_success
'updating remote name updates that remote' '
76 git remote update one &&