Skip to content

Report incomplete worktree cleanup - #1780

Merged
codeforester merged 2 commits into
mainfrom
bug/1776-20260727-prune-failure-report
Jul 28, 2026
Merged

Report incomplete worktree cleanup#1780
codeforester merged 2 commits into
mainfrom
bug/1776-20260727-prune-failure-report

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

Report incomplete worktree cleanup when the worktree is removed but its local branch cannot be deleted. The command now returns nonzero and counts the retained branch as a failure.

Issue

Fixes #1776

Validation

  • BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash bats cli/bash/commands/basectl/tests/gh-branch-worktree.bats (29 passed)
  • git diff --check

Demo Impact

None.

Notes

The command remains conservative and never force-deletes a branch that Git refuses to delete.

@codeforester
codeforester requested a review from a team as a code owner July 28, 2026 00:42
…ne-failure-report

# Conflicts:
#	docs/github-workflow.md
@codeforester
codeforester merged commit 1913949 into main Jul 28, 2026
28 checks passed
@codeforester
codeforester deleted the bug/1776-20260727-prune-failure-report branch July 28, 2026 01:11
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.

Report worktree branch cleanup failures accurately

1 participant