whooops, missed part two of this changeset
This commit is contained in:
parent
caae0a3cbd
commit
f613458780
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue