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

Remove .git suffix on destination directory if URL ends with it. #40

Merged
merged 1 commit into from
Jun 17, 2013
Merged

Remove .git suffix on destination directory if URL ends with it. #40

merged 1 commit into from
Jun 17, 2013

Conversation

fnichol
Copy link
Contributor

@fnichol fnichol commented Jun 16, 2013

Hey there,

I ran into an issue when managing some pull requests in my Homesick Chef cookbook. It looks like for Homesick gem versions greater than 0.7.0 Git URLs ending in .git will retain the suffix when the castle directory is created. I believe the regression was introduced by 376fd88.

This pull request cleans up the change in behavior and adds a sanity spec to cover future refactorings.

For example, the following:

homesick clone git://github.com/technicalpickles/pickled-vim.git

should produce a castle directory of:

$HOME/.homesick/repos/pickled-vim

Thanks for homesick, essential sanity for me when spinning up new systems 😄

For example, the following:

    homesick clone git://github.com/technicalpickles/pickled-vim.git

should produce a castle directory of:

    $HOME/.homesick/repos/pickled-vim
muratayusuke added a commit that referenced this pull request Jun 17, 2013
Remove .git suffix on destination directory if URL ends with it.
@muratayusuke muratayusuke merged commit d964e65 into technicalpickles:master Jun 17, 2013
@muratayusuke
Copy link
Collaborator

Thank you!

@fnichol
Copy link
Contributor Author

fnichol commented Jun 17, 2013

Woo, thanks!

@fnichol fnichol deleted the fix-clone-destination branch June 17, 2013 16:00
@technicalpickles
Copy link
Owner

@fnichol just ran into this the other day, thanks for contributing!

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.

3 participants