gitweb: Add a per-repository authorization hook.
[gitweb.git] / environment.c
index 0693cd9a42adf4914bb219ecf24fc6d5da7aafd3..bf93a598d0e2c4aedbc4065a43df0e9750f93a1c 100644 (file)
@@ -71,7 +71,7 @@ static void setup_git_env(void)
        }
        git_graft_file = getenv(GRAFT_ENVIRONMENT);
        if (!git_graft_file)
-               git_graft_file = xstrdup(git_path("info/grafts"));
+               git_graft_file = git_pathdup("info/grafts");
 }
 
 int is_bare_repository(void)