Merge pull request 'fix: P4 stale worktree sweep doesn't cover sup-retry-* worktrees (#253)' (#428) from fix/issue-253 into main

This commit is contained in:
johba 2026-03-20 20:54:03 +01:00
commit edfdae9ad8

View file

@ -909,7 +909,7 @@ Instructions:
# P4-PROJECT: Clean stale worktrees for this project
# ===========================================================================
NOW_TS=$(date +%s)
for wt in /tmp/${PROJECT_NAME}-worktree-* /tmp/${PROJECT_NAME}-review-*; do
for wt in /tmp/${PROJECT_NAME}-worktree-* /tmp/${PROJECT_NAME}-review-* /tmp/${PROJECT_NAME}-sup-retry-*; do
[ -d "$wt" ] || continue
WT_AGE_MIN=$(( (NOW_TS - $(stat -c %Y "$wt")) / 60 ))
if [ "$WT_AGE_MIN" -gt 120 ]; then