@matheusbsbs / matheus-bagliano / commits / fdd7d48d6a
Fork 0

t7003-filter-branch: Fix test of a failing --msg-filter.

The test passed for the wrong reason: If the script given to --msg-filter fails, it is expected that git-filter-branch aborts. But the test forgot to tell the branch name to rewrite, and so git-filter-branch failed due to incorrect usage. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed Nov 27, 2007 at 13:10 UTC fdd7d48d6a09c593a68c983c450443c1e55705e6
1 file changed +1 -1
t/t7003-filter-branch.sh
+1 -1
@@ -114,7 +114,7 @@ test_expect_success 'use index-filter to move into a subdirectory' '
114
115 test_expect_success 'stops when msg filter fails' '
116 old=$(git rev-parse HEAD) &&
117 - ! git-filter-branch -f --msg-filter false &&
117 + ! git-filter-branch -f --msg-filter false HEAD &&
118 test $old = $(git rev-parse HEAD) &&
119 rm -rf .git-rewrite
120 '