Thread (21 messages) flat view 21 messages, 4 authors, 2016-06-15

Re: [RFC] introduce GIT_WORK_DIR environment variable

From: Matthias Lederhofer <hidden>
Date: 2016-06-15 22:42:59

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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help