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 'nonexistent group produces error' '
49 test_must_fail git remote update nonexistent &&
54 test_expect_success 'updating group updates all members (remote update)' '
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 updates all members (fetch)' '
65 mark fetch-group-all &&
72 test_expect_success 'updating group does not update non-members (remote update)' '
75 git config --add remotes.some one &&
76 git remote update some &&
81 test_expect_success 'updating group does not update non-members (fetch)' '
82 mark fetch-group-some &&
84 git config --add remotes.some one &&
85 git remote update some &&
90 test_expect_success 'updating remote name updates that remote' '
93 git remote update one &&