summaryrefslogtreecommitdiff
path: root/t/t3800-mktag.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-06-17 10:42:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-06-28 16:30:41 (GMT)
commit2f61b3eef386e6e6cb81ab61dc310dd7f03e4b13 (patch)
treefd145307063e11f27b2a96ff24fd2adcf2302f6c /t/t3800-mktag.sh
parentb48015b3404cb19bfd3b6df1a372164d8cd3f7d7 (diff)
downloadgit-2f61b3eef386e6e6cb81ab61dc310dd7f03e4b13.zip
git-2f61b3eef386e6e6cb81ab61dc310dd7f03e4b13.tar.gz
git-2f61b3eef386e6e6cb81ab61dc310dd7f03e4b13.tar.bz2
mktag tests: test fast-export
Pass the bad tags we've created in the mktag tests through fast-export, it will die on the bad object or ref, let's make sure that happens. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3800-mktag.sh')
-rwxr-xr-xt/t3800-mktag.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh
index bb71303..0544d58 100755
--- a/t/t3800-mktag.sh
+++ b/t/t3800-mktag.sh
@@ -91,6 +91,14 @@ check_verify_failure () {
test_must_fail git -C bad-tag for-each-ref --format="%(*objectname)"
'
+
+ test_expect_success "fast-export & fast-import: $subject" '
+ # Make sure the earlier test created it for us
+ git rev-parse "$bad_tag" &&
+
+ test_must_fail git -C bad-tag fast-export --all &&
+ test_must_fail git -C bad-tag fast-export "$bad_tag"
+ '
}
test_expect_mktag_success() {