forked from sociomantic-tsunami/git-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clone: Get smarter at interpretting URLs
Some very half baked support to use full GitHub clone URLs was added to clone at some point, but this support is insuficient. It completely ignores the URL itself so it will always clone using the current `hub.urltype` scheme (which defaults to `ssh_url` and is probably too obscure to ask the user to manually change it). This commit makes the clone command to parse the URLs more intelligently and set the `hub.urltype` config option as appropriate (it seems more reasonable to think the user will like to use that instead, not only for the cloning but also for other future operations, like pushing). Fixes sociomantic-tsunami#149.
- Loading branch information
Leandro Lucarella
committed
Nov 9, 2015
1 parent
340ef56
commit 0e7eeab
Showing
2 changed files
with
58 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters