summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-04 12:26:54 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-04 12:26:54 -0700
commitd9fc248987fa160bdc8d114e0f296fa8639331e7 (patch)
treeb373f0098391f4d2b90b5c6b4e21055af616f6bb
parent7e39472020d25d1235e0893f9d80e90b1e9fa7c9 (diff)
parent09c5ae5a503b0293205c7e6d63a739bd8d0529dc (diff)
downloadgit-d9fc248987fa160bdc8d114e0f296fa8639331e7.tar.gz
Merge branch 'rr/feed-real-path-to-editor'
* rr/feed-real-path-to-editor: editor: use canonicalized absolute path
-rw-r--r--editor.c2
1 files changed, 1 insertions, 1 deletions
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;