From: Johannes Sixt Date: Tue, 27 Nov 2007 12:10:19 +0000 (+0100) Subject: t7003-filter-branch: Fix test of a failing --msg-filter. X-Git-Tag: v1.5.3.7~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fdd7d48d6a09c593a68c983c450443c1e55705e6;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh index 2089351f7..5f60b22d8 100755 --- a/t/t7003-filter-branch.sh +++ b/t/t7003-filter-branch.sh @@ -114,7 +114,7 @@ test_expect_success 'use index-filter to move into a subdirectory' ' test_expect_success 'stops when msg filter fails' ' old=$(git rev-parse HEAD) && - ! git-filter-branch -f --msg-filter false && + ! git-filter-branch -f --msg-filter false HEAD && test $old = $(git rev-parse HEAD) && rm -rf .git-rewrite '