claude-issue-solver 1.39.1 → 1.39.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/solve.js +20 -2
- package/package.json +1 -1
package/dist/commands/solve.js
CHANGED
|
@@ -135,10 +135,28 @@ echo ""
|
|
|
135
135
|
|
|
136
136
|
# Remove worktree (need to cd out first)
|
|
137
137
|
cd "${projectRoot}"
|
|
138
|
+
|
|
139
|
+
# Try git worktree remove first
|
|
138
140
|
git worktree remove "${worktreePath}" --force 2>/dev/null
|
|
139
141
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
# If folder still exists, force delete it
|
|
143
|
+
if [ -d "${worktreePath}" ]; then
|
|
144
|
+
echo "Git worktree remove didn't fully clean up, force deleting..."
|
|
145
|
+
/bin/rm -rf "${worktreePath}" 2>/dev/null || rm -rf "${worktreePath}" 2>/dev/null
|
|
146
|
+
fi
|
|
147
|
+
|
|
148
|
+
# Prune any stale worktree references
|
|
149
|
+
git worktree prune 2>/dev/null
|
|
150
|
+
|
|
151
|
+
# Verify cleanup
|
|
152
|
+
if [ -d "${worktreePath}" ]; then
|
|
153
|
+
echo "⚠️ Could not fully remove worktree. You may need to manually delete:"
|
|
154
|
+
echo " rm -rf '${worktreePath}'"
|
|
155
|
+
else
|
|
156
|
+
echo "✅ Worktree removed. Branch '${branchName}' preserved on remote."
|
|
157
|
+
echo " Fetch it in main repo: git fetch origin ${branchName}"
|
|
158
|
+
fi
|
|
159
|
+
|
|
142
160
|
echo ""
|
|
143
161
|
echo "Terminal will close in 3 seconds..."
|
|
144
162
|
sleep 3
|