Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-06-05 22:00:09 +0300
committerJunio C Hamano <gitster@pobox.com>2015-06-05 22:00:09 +0300
commit8d5ef5a0d1da18a2eb55c976720a8e96642c1b0b (patch)
treeb1f242433912f04efc62a741cf1ae1657d8bad05 /t
parenta3821a1ae5580ac9788d866c292376070d3e5133 (diff)
parentcb64800d83ace6fecb8701151cfdb6ed0712702c (diff)
Merge branch 'jk/add-e-kill-editor' into maint
"git add -e" did not allow the user to abort the operation by killing the editor. * jk/add-e-kill-editor: add: check return value of launch_editor
Diffstat (limited to 't')
-rwxr-xr-xt/t3702-add-edit.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t3702-add-edit.sh b/t/t3702-add-edit.sh
index 4ee47cc9a8..3cb74ca296 100755
--- 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