Skip to content

Conversation

nibzard
Copy link

@nibzard nibzard commented Aug 28, 2025

The try clone command was creating directories with malformed names due to two issues:

  1. Shell wrapper bug: The wrapper hardcoded 'cd' as first argument, treating 'clone https://...' as a search term instead of a command
  2. Directory naming: Included unused host variable in name generation

Fixed by:

  • Adding command detection in shell wrappers (bash/zsh and fish)
  • Removing unused host_part from directory name generation
  • Fixing argument parsing order for --path option

Now try clone https://github.com/user/repo correctly creates YYYY-MM-DD-user-repo instead of malformed names.

🤖 Generated with Claude Code

The `try clone` command was creating directories with malformed names
due to two issues:

1. Shell wrapper bug: The wrapper hardcoded 'cd' as first argument,
   treating 'clone https://...' as a search term instead of a command
2. Directory naming: Included unused host variable in name generation

Fixed by:
- Adding command detection in shell wrappers (bash/zsh and fish)
- Removing unused host_part from directory name generation
- Fixing argument parsing order for --path option

Now `try clone https://github.com/user/repo` correctly creates
`YYYY-MM-DD-user-repo` instead of malformed names.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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