diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh
index d47560b634..1d2a7516fd 100755
--- a/t/t9300-fast-import.sh
+++ b/t/t9300-fast-import.sh
@@ -2125,12 +2125,12 @@ test_expect_success 'R: export-marks feature results in a marks file being creat
EOF
- cat input | git fast-import &&
+ git fast-import output &&
+ git fast-import 2>output