Re: git stash doesn't honor --work-tree or GIT_WORK_TREE
- From
Øystein Walle <oystwa@gmail.com>
- Date
- Dec 1, 2013, 19:12 UTC
- Message-ID
- <loom.20131201T200904-80@post.gmane.org>
- In-Reply-To
- <CACsJy8BFqqy8T1zwZd7Ly1-sAKGoxh0YfhFBgX6fBMTt_b5Dbw@mail.gmail.com>
Duy Nguyen <pclouds <at> 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