fix: activate native protocol hooks in nested worktrees

This commit is contained in:
冰朔 2026-08-04 23:24:43 +08:00
commit 97858eb8b5
7 changed files with 48 additions and 4 deletions

View file

@ -1,6 +1,9 @@
#!/usr/bin/env sh
set -eu
hook_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "$hook_dir/.."
if [ -t 0 ]; then
push_input=""
else