summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-25 01:54:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-25 01:54:08 (GMT)
commit89919f4f57006358c278c1f207249edcccbe68c4 (patch)
tree0216e61b7a06eade9c50c7a5b5bb59609baa12aa /t
parent7a3db75beee75c4e1b5fdae7504bc2ba05c58b14 (diff)
parent9d87442f03c9e3fea7e24e2821fc0342f8efe1d6 (diff)
downloadgit-89919f4f57006358c278c1f207249edcccbe68c4.zip
git-89919f4f57006358c278c1f207249edcccbe68c4.tar.gz
git-89919f4f57006358c278c1f207249edcccbe68c4.tar.bz2
Merge branch 'bs/maint-commit-options' into maint
* 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')
-rwxr-xr-xt/t7501-commit.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index b151b51..7f25689 100755
--- 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"