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: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Sep 26, 2016 at 23:49 UTC d49028e6e7ad02a0fc2622487abc46312d9b42f4
1 file changed +2
builtin/worktree.c
+2
@@ -528,6 +528,8 @@ int cmd_worktree(int ac, const char **av, const char *prefix)
528 OPT_END()
529 };
530
531 + git_config(git_default_config, NULL);
532 +
533 if (ac < 2)
534 usage_with_options(worktree_usage, options);
535 if (!prefix)