summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6b57a8)
raw | patch | inline | side by side (parent: e6b57a8)
author | Conrad Irwin <conrad.irwin@gmail.com> | |
Tue, 10 May 2011 19:12:31 +0000 (12:12 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 10 May 2011 20:04:00 +0000 (13:04 -0700) |
Signed-off-by: Conrad Irwin <conrad.irwin@gmail.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Jeff King <peff@peff.net>
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 c2fd116d633351eeaa75cc4040f6e4a73670975b..73e19c50b0d8f57cf36b2d377f0f7b9eb4ce4072 100755 (executable)
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
"interactive add" \
"echo 7 | git commit --interactive | grep 'What now'"
+test_expect_success PERL \
+ "commit --interactive doesn't change index if editor aborts" \
+ "echo zoo >file &&
+ test_must_fail git diff --exit-code >diff1 &&
+ (echo u ; echo '*' ; echo q) |
+ (EDITOR=: && export EDITOR &&
+ test_must_fail git commit --interactive) &&
+ git diff >diff2 &&
+ test_cmp diff1 diff2"
+
test_expect_success \
"showing committed revisions" \
"git rev-list HEAD >current"