From 7d75e09af2539bd1eed512dfa5ca2fcaac1728be Mon Sep 17 00:00:00 2001 From: romkatv Date: Sat, 15 Feb 2020 11:57:35 +0100 Subject: [PATCH] bug fix: open .git file even if it's not literally called '.git' --- src/repository.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository.c b/src/repository.c index ead058e02b0..ead41fcef81 100644 --- a/src/repository.c +++ b/src/repository.c @@ -487,7 +487,7 @@ static int find_repo( break; } } - else if (S_ISREG(st.st_mode) && git__suffixcmp(path.ptr, "/" DOT_GIT) == 0) { + else if (S_ISREG(st.st_mode)) { error = read_gitfile(&repo_link, path.ptr); if (error < 0) break;