It's fine, right?

This commit is contained in:
Lucas Wilson-Richter
2024-06-17 17:43:06 +10:00
parent f79230e1f9
commit 854c282983

3
fcl
View File

@ -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/')