Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@crobbo
Copy link
Contributor

@crobbo crobbo commented Aug 28, 2025

When invoking the explicit try clone command via the CLI wrapper - it always calls the script as cd, so try clone <uri> [name] arrives as cd clone <uri> [name].

This caused if is_git_uri?(search_term.split.first) to always return false and resulted in the repo failing to clone and the folder names getting messed up.

The fix checks args.first == "clone" in cmd_cd! and if true it routes to cmd_clone! .

Also included a flaky test fix in this PR and I added { type: 'touch'} within the cmd_clone! method to ensure scoring logic works accurately.

@crobbo crobbo changed the title Fix 'try clone` bug Fix 'try clone' bug Aug 28, 2025
@tobi tobi merged commit 5f8eb9b into tobi:main Sep 2, 2025
1 check passed
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.

2 participants