X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5502-quickfetch.sh;h=1037a723fe74756f241346a077f4f3682dbbf45d;hb=752c0c24926aacbceca0d27de6ad22cbb7dd0709;hp=16eadd6b68664884836976aafb6dcbb582603c09;hpb=f1a8cc635455a65567d040349327b9ea4adb479b;p=git.git diff --git a/t/t5502-quickfetch.sh b/t/t5502-quickfetch.sh index 16eadd6b6..1037a723f 100755 --- a/t/t5502-quickfetch.sh +++ b/t/t5502-quickfetch.sh @@ -119,4 +119,24 @@ test_expect_success 'quickfetch should not copy from alternate' ' ' +test_expect_success 'quickfetch should handle ~1000 refs (on Windows)' ' + + git gc && + head=$(git rev-parse HEAD) && + branchprefix="$head refs/heads/branch" && + for i in 0 1 2 3 4 5 6 7 8 9; do + for j in 0 1 2 3 4 5 6 7 8 9; do + for k in 0 1 2 3 4 5 6 7 8 9; do + echo "$branchprefix$i$j$k" >> .git/packed-refs + done + done + done && + ( + cd cloned && + git fetch && + git fetch + ) + +' + test_done