Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .hooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,18 @@ custodian_multi=""
if command -v custodian-multi >/dev/null 2>&1; then
custodian_multi="$(command -v custodian-multi)"
fi
# A worktree has no venv of its own — the interpreter lives in the main clone, so
# the main_clone_root candidates are the ones that actually resolve there. Without
# them a worktree push on a box whose only custodian-multi is <clone>/.venv/bin
# (no PATH entry, no sibling Custodian checkout — the fleet's layout) dies on
# "custodian-multi not found". For a plain checkout main_clone_root == repo_root,
# so these are harmless duplicates of the two above.
for candidate in \
"$custodian_multi" \
"$repo_root/.venv/bin/custodian-multi" \
"$repo_root/.warehouse-venv/bin/custodian-multi" \
"$main_clone_root/.venv/bin/custodian-multi" \
"$main_clone_root/.warehouse-venv/bin/custodian-multi" \
"$workspace_root/Custodian/.venv/bin/custodian-multi"
do
if [ -x "$candidate" ]; then
Expand Down
Loading