t6036: avoid non-portable "cp -a"
[gitweb.git] / t / t6018-rev-list-glob.sh
index 02936c2f24aeaa3961bc11c623b7fd25d3280c43..db8a7834d88e6d01b3cc5106af749ede7b75866a 100755 (executable)
@@ -255,8 +255,8 @@ test_expect_success 'rev-list accumulates multiple --exclude' '
        compare rev-list "--exclude=refs/remotes/* --exclude=refs/tags/* --all" --branches
 '
 
-test_expect_failure 'rev-list should succeed with empty output on empty stdin' '
-       git rev-list --stdin <expect >actual &&
+test_expect_success 'rev-list should succeed with empty output on empty stdin' '
+       git rev-list --stdin </dev/null >actual &&
        test_must_be_empty actual
 '