summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-11-20 23:44:35 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-11-20 23:44:35 -0800
commit1b8dbdb41e503f6829be4e1d8ada4c8eabbc49bd (patch)
tree1281bbf5a21e3381efde6ca8866c0cd17aecea25 /t
parentdescribe: do not use unannotated tag even if exact match (diff)
parentremote: fix use-after-free error detected by glibc in ref_remove_duplicates (diff)
downloadtgif-1b8dbdb41e503f6829be4e1d8ada4c8eabbc49bd.tar.xz
Merge branch 'jp/fetch-cull-many-refs'
* jp/fetch-cull-many-refs: remote: fix use-after-free error detected by glibc in ref_remove_duplicates fetch: Speed up fetch of large numbers of refs remote: Make ref_remove_duplicates faster for large numbers of refs
Diffstat (limited to 't')
-rwxr-xr-xt/t5510-fetch.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index d13c806624..169af1edde 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -341,4 +341,15 @@ test_expect_success 'fetch into the current branch with --update-head-ok' '
'
+test_expect_success "should be able to fetch with duplicate refspecs" '
+ mkdir dups &&
+ cd dups &&
+ git init &&
+ git config branch.master.remote three &&
+ git config remote.three.url ../three/.git &&
+ git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
+ git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
+ git fetch three
+'
+
test_done