We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3c14b8 + 83e764a commit ac61bd3Copy full SHA for ac61bd3
1 file changed
setup.c
@@ -763,7 +763,7 @@ static const char *setup_discovered_git_dir(const char *gitdir,
763
set_git_dir(gitdir);
764
inside_git_dir = 0;
765
inside_work_tree = 1;
766
- if (offset == cwd->len)
+ if (offset >= cwd->len)
767
return NULL;
768
769
/* Make "offset" point past the '/' (already the case for root dirs) */
0 commit comments