Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fsck: add a simple test for receive.fsck.<msg-id>
[gitweb.git]
/
t
/
t3702-add-edit.sh
diff --git
a/t/t3702-add-edit.sh
b/t/t3702-add-edit.sh
index 4ee47cc9a862cdbe8c63bc9d4ebbe46ff3c344bc..3cb74ca296d141a6bd248e527680f5f217608ca7 100755
(executable)
--- a/
t/t3702-add-edit.sh
+++ b/
t/t3702-add-edit.sh
@@
-118,4
+118,11
@@
test_expect_success 'add -e' '
'
+test_expect_success 'add -e notices editor failure' '
+ git reset --hard &&
+ echo change >>file &&
+ test_must_fail env GIT_EDITOR=false git add -e &&
+ test_expect_code 1 git diff --exit-code
+'
+
test_done