Skip to content

Commit

Permalink
Merge branch 'rr/feed-real-path-to-editor'
Browse files Browse the repository at this point in the history
* rr/feed-real-path-to-editor:
  editor: use canonicalized absolute path
  • Loading branch information
Junio C Hamano committed Sep 4, 2013
2 parents 7e39472 + 09c5ae5 commit d9fc248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d9fc248

Please sign in to comment.