From: Kacper Kornet Date: Sat, 24 Aug 2013 04:01:44 +0000 (+0200) Subject: Make test "using invalid commit with -C" more strict X-Git-Tag: v1.8.5-rc0~133^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0bb0c15533c52bfb6f7a5174265869b808faf7ee Make test "using invalid commit with -C" more strict In the test 'using invalid commit with -C' git-commit would have failed even if the -C option had been given the correct commit, as there was nothing to commit. Pass --allow-empty to make sure it would make a commit, were there no issues with the argument given to the -C option. Signed-off-by: Kacper Kornet Signed-off-by: Junio C Hamano --- diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 99ce36f5ef..f04798f872 100755 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -53,7 +53,7 @@ test_expect_success PERL 'can use paths with --interactive' ' ' test_expect_success 'using invalid commit with -C' ' - test_must_fail git commit -C bogus + test_must_fail git commit --allow-empty -C bogus ' test_expect_success 'nothing to commit' '