From: Øystein Walle Date: Sun, 01 Dec 2013 19:12:30 GMT Subject: Re: git stash doesn't honor --work-tree or GIT_WORK_TREE Message-ID: In-Reply-To: Duy Nguyen gmail.com> writes: > It should. At the beginning of cmd_rev_parse(), setup_git_directory() > is called, which will check and follow all GIT_* or their command line > equivalent. I'll look into this some time later. I think I was wrong and rev-parse --is-inside-work-tree *does* honor them. It prints 'false'. If it hadn't honored them it would have printed "fatal: Not a git repository (...)". Øsse