updating git command to fetch the url of the remote origin
This commit is contained in:
parent
ee07fb83e7
commit
caae0a3cbd
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ proc editJson(p: PackageInfo; url, tags, downloadMethod: string) =
|
|||
proc getPackageOriginUrl(a: Auth): string =
|
||||
## Adds 'user:pw' to the URL so that the user is not asked *again* for it.
|
||||
## We need this for 'git push'.
|
||||
let (output, exitCode) = doCmdEx("git config --get remote.origin.url")
|
||||
let (output, exitCode) = doCmdEx("git ls-remote --get-url")
|
||||
result = "origin"
|
||||
if exitCode == 0:
|
||||
result = output.string.strip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue