Skip to content

Commit 0bb0c15

Browse files
draenoggitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e230c56 commit 0bb0c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7501-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test_expect_success PERL 'can use paths with --interactive' '
5353
'
5454

5555
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
5757
'
5858

5959
test_expect_success 'nothing to commit' '

0 commit comments

Comments
 (0)