Re: [PATCH 2/2] worktree: add: change to new worktree directory before running hook
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Feb 13, 2018, 07:34 UTC
- Message-ID
- <CAPig+cQH+a0UwN9Kqen0gmWbTwZZWTVtsPjDKqzw+U7t2Uk-LA@mail.gmail.com>
- In-Reply-To
- <b24e2f26-d5e4-d17d-04d1-1bd12eaf9faa@kdbg.org>
On Tue, Feb 13, 2018 at 2:27 AM, Johannes Sixt <j6t@kdbg.org> wrote:
Show 6 quoted lines
> Am 12.02.2018 um 04:15 schrieb Eric Sunshine: >> + echo $_z40 $(git rev-parse HEAD) 1 && >> + echo $(pwd)/gumby > > $(pwd) is here and in the other tests correct. $PWD would be wrong on > Windows. Thanks for being considerate.
Thanks for the confirmation. I'm always a bit leery of using "pwd" in tests due to Windows concerns; doubly so since I don't have a Windows installation on which to test it.