From 08e3a032b21d3fa7108b90c3e33295181e150e42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Scharfe?= Date: Mon, 28 Jul 2014 20:34:42 +0200 Subject: [PATCH] use strbuf_add_absolute_path() to add absolute paths Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- exec_cmd.c | 6 +----- 1 file changed, 1 insertion(+), 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); } } -- 2.11.4.GIT