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:
commit
edfdae9ad8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue