It's fine, right?
This commit is contained in:
3
fcl
3
fcl
@ -42,6 +42,9 @@ def repo_url(repo_str)
|
|||||||
# GitHub HTTPS. We like these, use it as-is.
|
# GitHub HTTPS. We like these, use it as-is.
|
||||||
when /^(git|https)\:\/\/github\.com\//
|
when /^(git|https)\:\/\/github\.com\//
|
||||||
repo_str
|
repo_str
|
||||||
|
# Other HTTPS. Assume it's fine?
|
||||||
|
when /^https\:\/\//
|
||||||
|
repo_str
|
||||||
# GitHub SSH. Let's convert this to HTTPS.
|
# GitHub SSH. Let's convert this to HTTPS.
|
||||||
when /^git@github\.com\:.+\.git$/
|
when /^git@github\.com\:.+\.git$/
|
||||||
repo_str.sub(/^git@github\.com:/, 'https://github.com/')
|
repo_str.sub(/^git@github\.com:/, 'https://github.com/')
|
||||||
|
|||||||
Reference in New Issue
Block a user