Merge branch 'rr/feed-real-path-to-editor'
* rr/feed-real-path-to-editor: editor: use canonicalized absolute path
This commit is contained in:
commit
d9fc248987
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");
|
||||
|
||||
if (strcmp(editor, ":")) {
|
||||
const char *args[] = { editor, path, NULL };
|
||||
const char *args[] = { editor, real_path(path), NULL };
|
||||
struct child_process p;
|
||||
int ret, sig;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user