Browse Source

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>
maint
René Scharfe 11 years ago committed by Junio C Hamano
parent
commit
9610decf4d
  1. 6
      exec_cmd.c

6
exec_cmd.c

@ -86,11 +86,7 @@ const char *git_exec_path(void) @@ -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);
}
}

Loading…
Cancel
Save