From: Junio C Hamano Date: Wed, 4 Sep 2013 19:26:54 +0000 (-0700) Subject: Merge branch 'rr/feed-real-path-to-editor' X-Git-Tag: v1.8.5-rc0~194 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d9fc248987fa160bdc8d114e0f296fa8639331e7?hp=7e39472020d25d1235e0893f9d80e90b1e9fa7c9 Merge branch 'rr/feed-real-path-to-editor' * rr/feed-real-path-to-editor: editor: use canonicalized absolute path --- diff --git a/editor.c b/editor.c index 27bdecdaf3..0abbd8dc3a 100644 --- a/editor.c +++ b/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;