whooops, missed part two of this changeset

This commit is contained in:
Samantha Marshall 2017-01-28 10:47:04 -05:00
commit f613458780
No known key found for this signature in database
GPG key ID: DF782CB74434EFA2

View file

@ -167,7 +167,7 @@ proc publish*(p: PackageInfo) =
var url = ""
var downloadMethod = ""
if dirExists(os.getCurrentDir() / ".git"):
let (output, exitCode) = doCmdEx("git config --get remote.origin.url")
let (output, exitCode) = doCmdEx("git ls-remote --get-url")
if exitCode == 0:
url = output.string.strip
if url.endsWith(".git"): url.setLen(url.len - 4)