]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5616: use correct flag to check object is missing
authorJonathan Tan <jonathantanmy@google.com>
Tue, 11 Jun 2019 21:06:46 +0000 (14:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2019 21:29:08 +0000 (14:29 -0700)
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>
t/t5616-partial-clone.sh

index f1baf83502093c338c7fe9bec97e69ff25f373ed..8b9b471a62753794d8304a8c9e9902a7bc4a0241 100755 (executable)
@@ -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 &&