]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9300: check ref existence using test-helper rather than a file system check
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 31 May 2021 16:56:18 +0000 (16:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:01:54 +0000 (10:01 +0900)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9300-fast-import.sh

index 5c47ac4465cb554fbfc9bf48e674f41f5e0ac041..1aea943bef72cc0748f922accd7a9fd07babcce4 100755 (executable)
@@ -392,7 +392,7 @@ test_expect_success 'B: accept branch name "TEMP_TAG"' '
                git gc
                git prune" &&
        git fast-import <input &&
-       test -f .git/TEMP_TAG &&
+       test $(test-tool ref-store main resolve-ref TEMP_TAG 0 | cut -f1 -d " " ) != "$ZERO_OID" &&
        test $(git rev-parse main) = $(git rev-parse TEMP_TAG^)
 '