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;