提交 d49028e6 编写于 作者: J Junio C Hamano

worktree: honor configuration variables

The command accesses default_abbrev (defined in environment.c and is
updated via core.abbrev configuration), but never makes any call to
git_config().  The output from "worktree list" ignores the abbrev
setting for this reason.

Make a call to git_config() to read the default set of configuration
variables at the beginning of the command.
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 7c0304af
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册