diff options
author | René Scharfe <l.s.r@web.de> | 2014-07-28 20:34:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-29 12:17:53 -0700 |
commit | 08e3a032b21d3fa7108b90c3e33295181e150e42 (patch) | |
tree | 84c547b9e58bb20ea57c9accc8286992d658a4c9 | |
parent | df323acc030f8b148a30a2c6ab546f26ba139228 (diff) | |
download | git-08e3a032b21d3fa7108b90c3e33295181e150e42.tar.gz |
use strbuf_add_absolute_path() to add absolute paths
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | exec_cmd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/exec_cmd.c b/exec_cmd.c index 125fa6fabf..698e7526c4 100644 --- a/exec_cmd.c +++ b/exec_cmd.c @@ -86,11 +86,7 @@ const char *git_exec_path(void) static void add_path(struct strbuf *out, const char *path) { if (path && *path) { - if (is_absolute_path(path)) - strbuf_addstr(out, path); - else - strbuf_addstr(out, absolute_path(path)); - + strbuf_add_absolute_path(out, path); strbuf_addch(out, PATH_SEP); } } |