Re: [RFC] introduce GIT_WORK_DIR environment variable
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Mar 11, 2007, 13:33 UTC
- Message-ID
- <20070311133350.GA12553@moooo.ath.cx>
- In-Reply-To
- <fcaeb9bf0703110542t49bb3e77kb164ba7bfee1a6ed@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 5 quoted lines
> 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?