aboutsummaryrefslogtreecommitdiff
path: root/t/t7501-commit.sh
diff options
context:
space:
mode:
authorKacper Kornet <draenog@pld-linux.org>2013-08-24 06:01:44 +0200
committerJunio C Hamano <gitster@pobox.com>2013-08-24 23:58:43 -0700
commit0bb0c15533c52bfb6f7a5174265869b808faf7ee (patch)
tree484406066cbe9013bc9290f13561841458f2811f /t/t7501-commit.sh
parente230c568c4b9a991e3175e5f65171a566fd8e39c (diff)
downloadgit-0bb0c15533c52bfb6f7a5174265869b808faf7ee.tar.gz
git-0bb0c15533c52bfb6f7a5174265869b808faf7ee.tar.xz
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>
Diffstat (limited to 't/t7501-commit.sh')
-rwxr-xr-xt/t7501-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index 99ce36f5e..f04798f87 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' '