Reduce the number of connects when fetching
[gitweb.git] / builtin-init-db.c
index e1393b8d1e74c03ff2b45ec93e268daa2e286fd8..e51d4477616b463fd14fc17dc40ed7f22f25de0c 100644 (file)
@@ -142,8 +142,7 @@ static void copy_templates(const char *git_dir, int len, const char *template_di
                template_dir = DEFAULT_GIT_TEMPLATE_DIR;
                if (!is_absolute_path(template_dir)) {
                        const char *exec_path = git_exec_path();
-                       template_dir = prefix_path(exec_path, strlen(exec_path),
-                                                  template_dir);
+                       template_dir = prefix_filename(exec_path, strlen(exec_path), template_dir);
                }
        }
        strcpy(template_path, template_dir);