Skip to content

Commit 816f806

Browse files
peffdscho
authored andcommitted
t9300: create marks files for double-import-marks test
Our tests confirm that providing two "import-marks" options in a fast-import stream is an error. However, the invoked command would fail even without covering this case, because the marks files themselves do not actually exist. Let's create the files to make sure we fail for the right reason (we actually do, because the option parsing happens before we open anything, but this future-proofs our test). Signed-off-by: Jeff King <[email protected]>
1 parent f94804c commit 816f806

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t9300-fast-import.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,6 +2107,8 @@ test_expect_success 'R: abort on receiving feature after data command' '
21072107
'
21082108

21092109
test_expect_success 'R: only one import-marks feature allowed per stream' '
2110+
>git.marks &&
2111+
>git2.marks &&
21102112
cat >input <<-EOF &&
21112113
feature import-marks=git.marks
21122114
feature import-marks=git2.marks

0 commit comments

Comments
 (0)