Eric Sunshine <sunsh...@sunshineco.com> 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.

Reply via email to