fcl: Parse more repo urls
This commit is contained in:
4
fcl
4
fcl
@ -42,8 +42,8 @@ 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?
|
# Some other HTTPS. This is probably fine too, as long as it ends with '.git'
|
||||||
when /^https\:\/\//
|
when /^(git|https)\:\/\/.+\.git$/
|
||||||
repo_str
|
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$/
|
||||||
|
|||||||
Reference in New Issue
Block a user