Merge branch 'rr/feed-real-path-to-editor'

* rr/feed-real-path-to-editor:
  editor: use canonicalized absolute path
This commit is contained in:
Junio C Hamano 2013-09-04 12:26:54 -07:00
commit d9fc248987

View File

@ -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;