diff --git a/builtin/worktree.c b/builtin/worktree.c index 6dcf7bd9d27004277fc568989d58a6236ed6867e..5c4854d3e4a679f59f4a7db7cb3f37bd0e210622 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -528,6 +528,8 @@ int cmd_worktree(int ac, const char **av, const char *prefix) OPT_END() }; + git_config(git_default_config, NULL); + if (ac < 2) usage_with_options(worktree_usage, options); if (!prefix)