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 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue