remote-curl: do not complain on EOF from parent git
[gitweb.git] / builtin / init-db.c
index ceeb138ba826a83843b3dae0d90cddcab664770a..c7c76bbf21fd5b5c9200b2535875b912e4d49000 100644 (file)
@@ -266,7 +266,7 @@ static int create_default_files(const char *template_path)
                /* allow template config file to override the default */
                if (log_all_ref_updates == -1)
                    git_config_set("core.logallrefupdates", "true");
-               if (prefixcmp(git_dir, work_tree) ||
+               if (!starts_with(git_dir, work_tree) ||
                    strcmp(git_dir + strlen(work_tree), "/.git")) {
                        git_config_set("core.worktree", work_tree);
                }