Skip to content

fix: exclude worktree branches from synch-git cleanup#168

Merged
LeeCampbell merged 1 commit intoHdrHistogram:mainfrom
LeeCampbell:fix/synch-git-worktree-filter
Mar 30, 2026
Merged

fix: exclude worktree branches from synch-git cleanup#168
LeeCampbell merged 1 commit intoHdrHistogram:mainfrom
LeeCampbell:fix/synch-git-worktree-filter

Conversation

@LeeCampbell
Copy link
Copy Markdown
Collaborator

Summary

  • Fix scripts/synch-git.sh to filter out worktree branches (prefixed with +) when deleting merged branches, preventing errors when worktrees are active.

Test plan

  • Run synch-git.sh with an active worktree and verify the worktree branch is not targeted for deletion
  • Run synch-git.sh without worktrees and verify merged branches are still cleaned up normally

🤖 Generated with Claude Code

Branches checked out in a worktree are prefixed with `+` in `git branch`
output. Without filtering these, the cleanup step would attempt to delete
them and fail.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LeeCampbell LeeCampbell merged commit 023f13c into HdrHistogram:main Mar 30, 2026
2 checks passed
@LeeCampbell LeeCampbell deleted the fix/synch-git-worktree-filter branch March 30, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant