]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/show-ref.c
Merge branch 'dl/config-alias-doc' into maint
[thirdparty/git.git] / builtin / show-ref.c
index 6a706c02a6f9782ee4abb289cfafe468253aca1f..6456da70cc2c4d6a86c2466c483dd815b15bbb45 100644 (file)
@@ -1,5 +1,6 @@
 #include "builtin.h"
 #include "cache.h"
+#include "config.h"
 #include "refs.h"
 #include "object-store.h"
 #include "object.h"
@@ -182,6 +183,8 @@ static const struct option show_ref_options[] = {
 
 int cmd_show_ref(int argc, const char **argv, const char *prefix)
 {
+       git_config(git_default_config, NULL);
+
        argc = parse_options(argc, argv, prefix, show_ref_options,
                             show_ref_usage, 0);