Skip to content
forked from git/git

Commit

Permalink
Fix removing lazy initialization of repository state
Browse files Browse the repository at this point in the history
The commit that created the bug: 73f192c
Lazy initialization was removed incorrectly!
  • Loading branch information
remittor committed Oct 17, 2020
1 parent bb21c28 commit 9179811
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions environment.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9179811

Please sign in to comment.