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 <draenog@pld-linux.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Kacper Kornet committed Aug 24, 2013 at 06:01 UTC 0bb0c15533c52bfb6f7a5174265869b808faf7ee
1 file changed +1 -1
t/t7501-commit.sh
+1 -1
@@ -53,7 +53,7 @@ test_expect_success PERL 'can use paths with --interactive' '
53 '
54
55 test_expect_success 'using invalid commit with -C' '
56 - test_must_fail git commit -C bogus
56 + test_must_fail git commit --allow-empty -C bogus
57 '
58
59 test_expect_success 'nothing to commit' '