Skip to content

🐛 fix(clone): handle incomplete clones with --force flag#25

Merged
iamrajjoshi merged 1 commit intomainfrom
fix--clone-force-flag
Feb 15, 2026
Merged

🐛 fix(clone): handle incomplete clones with --force flag#25
iamrajjoshi merged 1 commit intomainfrom
fix--clone-force-flag

Conversation

@iamrajjoshi
Copy link
Owner

Summary

  • If a previous ww clone was interrupted or failed, the partial bare repo blocks retrying with an "already exists" error
  • Added --force flag to ww clone that removes the existing bare repo and worktrees before re-cloning
  • Updated error message to suggest --force when an existing repo is detected

Test plan

  • Run ww clone <url>, interrupt it mid-clone, then re-run without --force — should see error with --force suggestion
  • Re-run with --force — should clean up and clone successfully
  • Run ww clone <url> on a fully cloned repo with --force — should re-clone from scratch

If a previous clone was interrupted or failed partway through, the
partial bare repo is left on disk causing subsequent clone attempts
to error. Add a --force flag that removes the existing bare repo and
worktrees before re-cloning, and update the error message to suggest
using --force.
@iamrajjoshi iamrajjoshi merged commit a995226 into main Feb 15, 2026
2 checks passed
@iamrajjoshi iamrajjoshi deleted the fix--clone-force-flag branch February 15, 2026 00:36
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