X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=exec_cmd.c;h=171e841531de7fd5b51aa26f639104382395b854;hb=a9f578685299239ae2de16fb7389ee9f38364b6e;hp=bf225706ee377b89035eb21f76f9957cfaf6363b;hpb=06cfa8a8589740b9dd4820ad1c2eff4b3d968de7;p=git.git diff --git a/exec_cmd.c b/exec_cmd.c index bf225706e..171e84153 100644 --- a/exec_cmd.c +++ b/exec_cmd.c @@ -3,7 +3,6 @@ #include "quote.h" #define MAX_ARGS 32 -extern char **environ; static const char *argv_exec_path; static const char *argv0_path; @@ -90,7 +89,7 @@ static void add_path(struct strbuf *out, const char *path) if (is_absolute_path(path)) strbuf_addstr(out, path); else - strbuf_addstr(out, make_nonrelative_path(path)); + strbuf_addstr(out, absolute_path(path)); strbuf_addch(out, PATH_SEP); }