diff options
author | Jeff King <peff@peff.net> | 2008-04-22 07:11:13 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-24 22:30:31 -0700 |
commit | 1ce89cc4bb18b0e66f7073562d6634f6a9841335 (patch) | |
tree | 13dce1f6404c0d9a759d29cc7902e0ea7b3915b9 /t | |
parent | f8aae120345f511e59bb008e8de2a8f6e65cf377 (diff) | |
download | git-1ce89cc4bb18b0e66f7073562d6634f6a9841335.tar.gz git-1ce89cc4bb18b0e66f7073562d6634f6a9841335.tar.xz |
remote: create fetch config lines with '+'
Since git-remote always uses remote tracking branches, it
should be safe to always force updates of those branches.
I.e., we should generate
fetch = +refs/heads/*:refs/remotes/$remote/*
instead of
fetch = refs/heads/*:refs/remotes/$remote/*
This was the behavior of the perl version, which seems to
have been lost in the C rewrite.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t5505-remote.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index af2d07779..48ff2d424 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -77,6 +77,16 @@ test_expect_success 'add another remote' ' ) ' +test_expect_success 'remote forces tracking branches' ' +( + cd test && + case `git config remote.second.fetch` in + +*) true ;; + *) false ;; + esac +) +' + test_expect_success 'remove remote' ' ( cd test && |