Merge branch 'sv/submitting-final-patch'
[gitweb.git] / exec_cmd.c
index 125fa6fabf503d29cb82b2ccbc92359abf95b0e8..698e7526c40749fd333367018c192537cf6b4562 100644 (file)
@@ -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);
        }
 }