3 test_description='tagopt variable affects "git fetch" and is overridden by commandline.'
8 git clone --mirror . $1 &&
9 git remote add remote_$1 $1 &&
14 test_expect_success setup '
17 git config remote.remote_one.tagopt --no-tags &&
19 git config remote.remote_two.tagopt --tags
22 test_expect_success "fetch with tagopt=--no-tags does not get tag" '
23 git fetch remote_one &&
24 test_must_fail git show-ref tag_one
27 test_expect_success "fetch --tags with tagopt=--no-tags gets tag" '
28 git fetch --tags remote_one &&
32 test_expect_success "fetch --no-tags with tagopt=--tags does not get tag" '
33 git fetch --no-tags remote_two &&
34 test_must_fail git show-ref tag_two
37 test_expect_success "fetch with tagopt=--tags gets tag" '
38 git fetch remote_two &&