Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone command optional parameter for renaming of repo's name #91

Closed
varemenos opened this issue Apr 18, 2014 · 3 comments
Closed

clone command optional parameter for renaming of repo's name #91

varemenos opened this issue Apr 18, 2014 · 3 comments
Assignees

Comments

@varemenos
Copy link

I have the following repositories [dotfiles, themes, apps, dev] but their repository names have a "castle-" prefix for namespacing reasons. What I wish I could do is the following:

$ homeshick clone user@somewhere/castle-dotfiles.git dotfiles

Which would take the castle-dotfiles directory and rename it to dotfiles (same as git's behavior, git clone user@somewhere/castle-dotfiles.git dotfiles)

@andsens
Copy link
Owner

andsens commented Apr 20, 2014

I see the predicament, but homeshick allows you to pass multiple git urls to clone so you can bootstrap easily with homeshick clone tpope/vim-git robbyrussell/oh-my-zsh altercation/vim-colors-solarized etc.. Your suggestion would break that behavior.

However: Because homeshick has no config files and only works with whatever it sees in the filesystem, you can pretty easily just clone the castles with git and then run homeshick link. homeshick does not care about what the url of the upstream remote is, so you can just run:

git clone user@somewhere/castle-dotfiles.git $HOME/.homeshick/repos/dotfiles
homeshick link dotfiles

or

homeshick -b clone user@somewhere/castle-dotfiles.git
(cd $HOME/.homeshick/repos; mv castle-dotfiles dotfiles)
homeshick link dotfiles

@andsens andsens closed this as completed Apr 20, 2014
@squaresurf
Copy link
Contributor

I may be wrong, but wouldn't it be better to mimick git's functionality with this since homeshick is built on git and using a git term (clone)? What do you think about adding this functionality and moving the "bootstrap" feature of the clone command to a new bootstrap command?

@andsens
Copy link
Owner

andsens commented Apr 21, 2014

Meh, homeshick isn't meant to mimick git, it's meant to wrap it, which I perceive as quite different.
I agree that clone is an unfortunate name for that command and that may be the real issue here.

I'll leave it be for now, because so far it has only been a minor hindrance for a single person. I won't change the established way of interacting with homeshick on that basis.

@andsens andsens self-assigned this Apr 23, 2014
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

No branches or pull requests

3 participants