updating git command to fetch the url of the remote origin

This commit is contained in:
Samantha Marshall 2017-01-27 20:25:25 -05:00
commit caae0a3cbd
No known key found for this signature in database
GPG key ID: DF782CB74434EFA2

View file

@ -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