Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Aug 26, 2014
1 parent 679eebe commit 9610dec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions exec_cmd.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9610dec

Please sign in to comment.