From: Matthias Lederhofer Date: Sun, 11 Mar 2007 13:33:51 GMT Subject: Re: [RFC] introduce GIT_WORK_DIR environment variable Message-ID: <20070311133350.GA12553@moooo.ath.cx> In-Reply-To: Nguyen Thai Ngoc Duy 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?