summaryrefslogtreecommitdiff
path: root/t/t5616-partial-clone.sh
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2019-06-11 21:06:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-11 21:29:08 (GMT)
commit5718c53d0ab47cc750e05d2af4a401197117c2f0 (patch)
treec5b243eff216d0dc97315b21515fd1ab3ceb6b10 /t/t5616-partial-clone.sh
parent8a30a1efd11bcfb7b0f5b8543492a09fc495ae60 (diff)
downloadgit-5718c53d0ab47cc750e05d2af4a401197117c2f0.zip
git-5718c53d0ab47cc750e05d2af4a401197117c2f0.tar.gz
git-5718c53d0ab47cc750e05d2af4a401197117c2f0.tar.bz2
t5616: use correct flag to check object is missing
If we want to check whether an object is missing, the correct flag to pass to rev-list is --ignore-missing; --exclude-promisor-objects will exclude any object that came from the promisor remote, whether it is present or missing. Use the correct flag. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5616-partial-clone.sh')
-rwxr-xr-xt/t5616-partial-clone.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5616-partial-clone.sh b/t/t5616-partial-clone.sh
index f1baf83..8b9b471 100755
--- a/t/t5616-partial-clone.sh
+++ b/t/t5616-partial-clone.sh
@@ -359,7 +359,7 @@ test_expect_success 'tolerate server sending REF_DELTA against missing promisor
--filter=blob:none $HTTPD_URL/one_time_sed/server repo &&
# Sanity check to ensure that the client does not have that blob.
- git -C repo rev-list --objects --exclude-promisor-objects \
+ git -C repo rev-list --objects --ignore-missing \
-- $(cat deltabase) >objlist &&
test_line_count = 0 objlist &&