From: Junio C Hamano Date: Thu, 15 Feb 2018 20:52:11 GMT Subject: Re: [PATCH v2] worktree: add: fix 'post-checkout' not knowing new worktree location Message-ID: In-Reply-To: <20180215191841.40848-1-sunshine@sunshineco.com> Eric Sunshine writes: > test_expect_success '"add" invokes post-checkout hook (branch)' ' > post_checkout_hook && > - printf "%s %s 1\n" $_z40 $(git rev-parse HEAD) >hook.expect && > + { > + echo $_z40 $(git rev-parse HEAD) 1 && > + echo $(pwd)/.git/worktrees/gumby && > + echo $(pwd)/gumby > + } >hook.expect && > git worktree add gumby && > - test_cmp hook.expect hook.actual > + test_cmp hook.expect gumby/hook.actual > ' This seems to segfault on me, without leaving hook.actual anywhere.