X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-init-db.c;h=e51d4477616b463fd14fc17dc40ed7f22f25de0c;hb=4e891acf679c0020b61889447f8f412324aeffa9;hp=e1393b8d1e74c03ff2b45ec93e268daa2e286fd8;hpb=ada59fcd3230e661bc1110702a2fb4ef76371bc1;p=git.git diff --git a/builtin-init-db.c b/builtin-init-db.c index e1393b8d1..e51d44776 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -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);