Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rr/feed-real-path-to-editor'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 4 Sep 2013 19:26:54 +0000
(12:26 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 4 Sep 2013 19:26:54 +0000
(12:26 -0700)
* rr/feed-real-path-to-editor:
editor: use canonicalized absolute path
editor.c
patch
|
blob
|
history
raw
(from parent 1:
7e39472
)
diff --git
a/editor.c
b/editor.c
index 27bdecdaf3d99d3179737e07be971d2458408660..0abbd8dc3a0ec91acd0c143b6d9b5ad41ac90417 100644
(file)
--- 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;