Nguyen Thai Ngoc Duy [off-list ref] wrote:
My case seems a bit complicated than usual. The working directory
(/home/pclouds/blog/data) was not a prefix of cwd (/home/pclouds/blog)
so the code failed silently at this line. If I replace
"has_working_directory = 0; return NULL;" with "strcpy(cwd,gitwd);c =
0;break;", it may work but see below
If you're outside the specifed working directory the
is_bare_repository will return true, just as if you don't have a
working directory. Do you expect anything else or doesn't this work?