From 91798112a04f0758ee92179a721224298e7a54ca Mon Sep 17 00:00:00 2001 From: remittor Date: Sun, 18 Oct 2020 00:07:51 +0300 Subject: [PATCH] Fix removing lazy initialization of repository state The commit that created the bug: 73f192c Lazy initialization was removed incorrectly! --- environment.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/environment.c b/environment.c index a8cb6926c56ff7..a6fcd6b899f6f7 100644 --- a/environment.c +++ b/environment.c @@ -203,8 +203,7 @@ int is_bare_repository(void) int have_git_dir(void) { - return startup_info->have_repository - || the_repository->gitdir; + return the_repository->gitdir ? 1 : 0; } const char *get_git_dir(void)