aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-20 23:44:35 -0800
committerJunio C Hamano <gitster@pobox.com>2009-11-20 23:44:35 -0800
commit1b8dbdb41e503f6829be4e1d8ada4c8eabbc49bd (patch)
tree1281bbf5a21e3381efde6ca8866c0cd17aecea25 /t
parent7a0d61bb45055cacf85111e7c48dfb9054b0abb0 (diff)
parent95c96d48e65a597cfd2bf7228ddc8c7ca30b55b7 (diff)
downloadgit-1b8dbdb41e503f6829be4e1d8ada4c8eabbc49bd.tar.gz
git-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 d13c80662..169af1edd 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