Merge branch 'rr/feed-real-path-to-editor'
* rr/feed-real-path-to-editor: editor: use canonicalized absolute path
This commit is contained in:
2
editor.c
2
editor.c
@ -37,7 +37,7 @@ int launch_editor(const char *path, struct strbuf *buffer, const char *const *en
|
|||||||
return error("Terminal is dumb, but EDITOR unset");
|
return error("Terminal is dumb, but EDITOR unset");
|
||||||
|
|
||||||
if (strcmp(editor, ":")) {
|
if (strcmp(editor, ":")) {
|
||||||
const char *args[] = { editor, path, NULL };
|
const char *args[] = { editor, real_path(path), NULL };
|
||||||
struct child_process p;
|
struct child_process p;
|
||||||
int ret, sig;
|
int ret, sig;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user