Re: [PATCH v2] worktree: add: fix 'post-checkout' not knowing new worktree location
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 12 quoted lines
> 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.