summaryrefslogtreecommitdiff
path: root/t/t5500-fetch-pack.sh
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-09-09 06:19:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-09-12 18:46:32 (GMT)
commit5f0fc64513c8cb638e0d6010005d8e86c9dbca3a (patch)
tree9af38ff8d62999de23aab18eb9b08446294a0e95 /t/t5500-fetch-pack.sh
parentb285668dd23952b96d716aac769c0ed1080d11d3 (diff)
downloadgit-5f0fc64513c8cb638e0d6010005d8e86c9dbca3a.zip
git-5f0fc64513c8cb638e0d6010005d8e86c9dbca3a.tar.gz
git-5f0fc64513c8cb638e0d6010005d8e86c9dbca3a.tar.bz2
fetch-pack: eliminate spurious error messages
It used to be that if "--all", "--depth", and also explicit references were sought, then the explicit references were not handled correctly in filter_refs() because the "--all --depth" code took precedence over the explicit reference handling, and the explicit references were never noted as having been found. So check for explicitly sought references before proceeding to the "--all --depth" logic. This fixes two test cases in t5500. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5500-fetch-pack.sh')
-rwxr-xr-xt/t5500-fetch-pack.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh
index 894d945..6322e8a 100755
--- a/t/t5500-fetch-pack.sh
+++ b/t/t5500-fetch-pack.sh
@@ -427,14 +427,14 @@ test_expect_success 'test missing ref before existing' '
test_cmp expect-error error-me
'
-test_expect_failure 'test --all, --depth, and explicit head' '
+test_expect_success 'test --all, --depth, and explicit head' '
(
cd client &&
git fetch-pack --no-progress --all --depth=1 .. refs/heads/A
) >out-adh 2>error-adh
'
-test_expect_failure 'test --all, --depth, and explicit tag' '
+test_expect_success 'test --all, --depth, and explicit tag' '
git tag OLDTAG refs/heads/B~5 &&
(
cd client &&