summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34cb704)
raw | patch | inline | side by side (parent: 34cb704)
author | Björn Steinbrink <B.Steinbrink@gmx.de> | |
Mon, 12 Nov 2007 15:15:39 +0000 (16:15 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 13 Nov 2007 02:23:32 +0000 (18:23 -0800) |
git-commit was/is broken in that it accepts paths together with -a or
--interactive, which it shouldn't. There tests check those usage errors.
Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
--interactive, which it shouldn't. There tests check those usage errors.
Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit.sh | patch | blob | history |
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index b151b51a3420fdba921da16979ec4a480b61a973..7f25689bb7feec1a9611a27af5ee19f6211a9054 100644 (file)
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
"invalid options 2" \
"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"