Merge branch 'jk/add-e-kill-editor'
"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
This commit is contained in:
@ -209,7 +209,8 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
|
||||
if (run_diff_files(&rev, 0))
|
||||
die(_("Could not write patch"));
|
||||
|
||||
launch_editor(file, NULL, NULL);
|
||||
if (launch_editor(file, NULL, NULL))
|
||||
die(_("editing patch failed"));
|
||||
|
||||
if (stat(file, &st))
|
||||
die_errno(_("Could not stat '%s'"), file);
|
||||
|
Reference in New Issue
Block a user