X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=symbolic-ref.c;h=193c87c174706710b346e58c42a9651dbb5e671f;hb=2048bb00ee3937808ce9f0c8f59d71a9b46ab56f;hp=af087d211de32786120882f89a63f94a3e699d98;hpb=79a9d8ea0d88a3667ad19be8e705405ab5d896f1;p=git.git diff --git a/symbolic-ref.c b/symbolic-ref.c index af087d21..193c87c1 100644 --- a/symbolic-ref.c +++ b/symbolic-ref.c @@ -3,7 +3,7 @@ static const char git_symbolic_ref_usage[] = "git-symbolic-ref name [ref]"; -static int check_symref(const char *HEAD) +static void check_symref(const char *HEAD) { unsigned char sha1[20]; const char *git_HEAD = strdup(git_path("%s", HEAD)); @@ -20,6 +20,7 @@ static int check_symref(const char *HEAD) int main(int argc, const char **argv) { setup_git_directory(); + git_config(git_default_config); switch (argc) { case 2: check_symref(argv[1]);