Merge pull request #383 from waylon531/master
Added better url detection to publish
This commit is contained in:
commit
d253652afc
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ proc publish*(p: PackageInfo, o: Options) =
|
||||||
if parsed.scheme == "":
|
if parsed.scheme == "":
|
||||||
# Assuming that we got an ssh write/read URL.
|
# Assuming that we got an ssh write/read URL.
|
||||||
let sshUrl = parseUri("ssh://" & url)
|
let sshUrl = parseUri("ssh://" & url)
|
||||||
url = "https://github.com/" & sshUrl.port & sshUrl.path
|
url = "https://" & sshUrl.hostname & "/" & sshUrl.port & sshUrl.path
|
||||||
elif dirExists(os.getCurrentDir() / ".hg"):
|
elif dirExists(os.getCurrentDir() / ".hg"):
|
||||||
downloadMethod = "hg"
|
downloadMethod = "hg"
|
||||||
# TODO: Retrieve URL from hg.
|
# TODO: Retrieve URL from hg.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue