t5500: add tests of fetch-pack --all --depth=N $URL $REF
[git.git] / t / t5500-fetch-pack.sh
index 6fa1ceffee99c786beb2d9e6a3d8ec268ccc2337..15d277f15831105fe596ea589f71c4b59ef0ca68 100755 (executable)
@@ -427,4 +427,19 @@ test_expect_success 'test missing ref before existing' '
        test_cmp expect-error error-me
 '
 
+test_expect_failure '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' '
+       git tag OLDTAG refs/heads/B~5 &&
+       (
+               cd client &&
+               git fetch-pack --no-progress --all --depth=1 .. refs/tags/OLDTAG
+       ) >out-adt 2>error-adt
+'
+
 test_done