Skip to content

Commit 0f6c6ed

Browse files
Matthieu Ciapparaclaude
andcommitted
Release v0.2.1
Improve error diagnostics for `wtclone rm` (gitignored entries blocking removal) and `wtclone add` (existing-branch state distinguished into four cases with tailored remediation). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent de0f109 commit 0f6c6ed

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.1] - 2026-04-28
11+
1012
### Changed
1113

1214
- `wtclone rm` now detects gitignored entries (caches, build artifacts, vendored deps) before delegating to `git worktree remove`. These pass git's cleanliness check but block the final `rmdir` with the cryptic `failed to delete '...': Directory not empty`. The new pre-check fails with a message that names the offending entries and points to the two remediation paths: `wtclone rm <branch> --force`, or `git -C <wt_path> clean -fdX` to clean first. Behavior is unchanged — `--force` still bypasses the check.

bin/wtclone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
set -euo pipefail
1313

14-
WTCLONE_VERSION="0.2.0"
14+
WTCLONE_VERSION="0.2.1"
1515
SAFE_FETCH_REFSPEC='+refs/heads/*:refs/remotes/origin/*'
1616

1717
usage() {

0 commit comments

Comments
 (0)