]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git.c
k.org git toppage: Add link to 1.5.3 release notes.
[git.git] / git.c
diff --git a/git.c b/git.c
index 9eaca1d67149ee60d1fe23661b6a45139987b7a2..853e66cddbbcc00943cfc0af06741ca8116b7966 100644 (file)
--- a/git.c
+++ b/git.c
@@ -409,13 +409,14 @@ int main(int argc, const char **argv)
        /*
         * Take the basename of argv[0] as the command
         * name, and the dirname as the default exec_path
-        * if it's an absolute path and we don't have
-        * anything better.
+        * if we don't have anything better.
         */
        if (slash) {
                *slash++ = 0;
                if (*cmd == '/')
                        exec_path = cmd;
+               else
+                       exec_path = xstrdup(make_absolute_path(cmd));
                cmd = slash;
        }