Skip to content

Commit 2f61b3e

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b48015b commit 2f61b3e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t3800-mktag.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ check_verify_failure () {
9191
9292
test_must_fail git -C bad-tag for-each-ref --format="%(*objectname)"
9393
'
94+
95+
test_expect_success "fast-export & fast-import: $subject" '
96+
# Make sure the earlier test created it for us
97+
git rev-parse "$bad_tag" &&
98+
99+
test_must_fail git -C bad-tag fast-export --all &&
100+
test_must_fail git -C bad-tag fast-export "$bad_tag"
101+
'
94102
}
95103

96104
test_expect_mktag_success() {

0 commit comments

Comments
 (0)