Merge pull request #325 from samdmarshall/master

whooops, missed part two of #324
This commit is contained in:
Dominik Picheta 2017-01-28 18:34:53 +01:00 • committed by GitHub
commit 27b970885a

View file

@ -167,7 +167,7 @@ proc publish*(p: PackageInfo) =
var url = "" var url = ""
var downloadMethod = "" var downloadMethod = ""
if dirExists(os.getCurrentDir() / ".git"): 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: if exitCode == 0:
url = output.string.strip url = output.string.strip
if url.endsWith(".git"): url.setLen(url.len - 4) if url.endsWith(".git"): url.setLen(url.len - 4)