diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-05-31 16:56:18 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-06-02 10:01:54 +0900 |
commit | 62038c81f35455745066e6f746d5f0b0a1e1f917 (patch) | |
tree | 77daed4565bbb6dc62431fb08ffaf8c13ee3c50d /t | |
parent | t/helper/ref-store: initialize oid in resolve-ref (diff) | |
download | tgif-62038c81f35455745066e6f746d5f0b0a1e1f917.tar.xz |
t9300: check ref existence using test-helper rather than a file system check
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t9300-fast-import.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 5c47ac4465..1aea943bef 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -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^) ' |