rerere: don't segfault on failure to open rr-cache
[gitweb.git] / builtin-commit.c
index 200ffdaad4226ae2021c86ae4b7a2f8ccefb3600..2299dc75ceebc6792fd51118aaff721cc865f844 100644 (file)
@@ -954,7 +954,7 @@ static int git_commit_config(const char *k, const char *v, void *cb)
        struct wt_status *s = cb;
 
        if (!strcmp(k, "commit.template"))
-               return git_config_string(&template_file, k, v);
+               return git_config_pathname(&template_file, k, v);
 
        return git_status_config(k, v, s);
 }