]> git.ipfire.org Git - thirdparty/git.git/blobdiff - worktree.c
config: pass kvi to die_bad_number()
[thirdparty/git.git] / worktree.c
index c448fecd4b3a2209251228abe2e5398346e391ab..af277ec9010547e2755703fa7484e54a1198770c 100644 (file)
@@ -835,7 +835,7 @@ int init_worktree_config(struct repository *r)
         * Relocate that value to avoid breaking all worktrees with this
         * upgrade to worktree config.
         */
-       if (!git_configset_get_value(&cs, "core.worktree", &core_worktree)) {
+       if (!git_configset_get_value(&cs, "core.worktree", &core_worktree, NULL)) {
                if ((res = move_config_setting("core.worktree", core_worktree,
                                               common_config_file,
                                               main_worktree_file)))