Switch to only checking for 'github.com' in url
Avoids dealing with http:// v https:// v git:// urls
This commit is contained in:
parent
e51d1679c5
commit
8ed8b98c61
1 changed files with 1 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ proc downloadPkg(url: string, verRange: VersionRange,
|
|||
# Fixes issue #204
|
||||
# github + https + trailing url slash causes a
|
||||
# checkout/ls-remote to fail with Repository not found
|
||||
if modUrl.contains("https://github.com") and modUrl.endswith("/"):
|
||||
if modUrl.contains("github.com") and modUrl.endswith("/"):
|
||||
modUrl = modUrl[0 .. ^2]
|
||||
|
||||
echo("Downloading ", modUrl, " into ", downloadDir, " using ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue