summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-11-14 14:25:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-11-14 14:25:46 -0800
commitb2e163272c01aca4aee4684f5c683ba341c1953d (patch)
tree34c715d4eae3110db63c6b9a2bbaa1c7abac4bdf /t
parentMerge branch 'rv/maint-index-commit' (diff)
parentgit-commit: Add tests for invalid usage of -a/--interactive with paths (diff)
downloadtgif-b2e163272c01aca4aee4684f5c683ba341c1953d.tar.xz
Merge branch 'bs/maint-commit-options'
* bs/maint-commit-options: git-commit: Add tests for invalid usage of -a/--interactive with paths git-commit.sh: Fix usage checks regarding paths given when they do not make sense
Diffstat (limited to 't')
-rw-r--r--t/t7501-commit.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index 4dc35bdf55..9dba104b1f 100644
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
@@ -34,6 +34,16 @@ test_expect_failure \
"git-commit -C HEAD -m illegal"
test_expect_failure \
+ "using paths with -a" \
+ "echo King of the bongo >file &&
+ git-commit -m foo -a file"
+
+test_expect_failure \
+ "using paths with --interactive" \
+ "echo bong-o-bong >file &&
+ echo 7 | git-commit -m foo --interactive file"
+
+test_expect_failure \
"using invalid commit with -C" \
"git-commit -C bogus"