]> oss.titaniummirror.com Git - repo_shell.git/commitdiff
Add git prefix to repository paths
authorR. Steve McKown <rsmckown@gmail.com>
Sun, 23 Sep 2012 17:54:41 +0000 (11:54 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Sun, 23 Sep 2012 17:54:41 +0000 (11:54 -0600)
repo-shell.c

index 6962d35da946d73729e5a6f53dc7cfde548da236..b44c64421a2abee000a32aa6460b39a28e676f5e 100644 (file)
@@ -161,7 +161,7 @@ static int do_git_cmd(const char *cmd, char *arg, char *user)
                die("permission denied");
 
        nargv[0] = cmd;
-       nargv[1] = arg;
+       nargv[1] = add_prefix(git_repo_root, arg);
        nargv[2] = NULL;
 
        ret = execvp(nargv[0], (char *const *) nargv);