Skip to content

Commit 4981083

Browse files
committed
Fixing git config get
- Fixes ` error: key does not contain a section: get` - The argument is `--get`
1 parent 337a009 commit 4981083

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,9 +1085,9 @@ def cpu_name():
10851085
sys.stdout.flush()
10861086
sys.stdout.flush()
10871087
try:
1088-
gitReferenceFilesURL = check_output_log(["git", "config", "get", "remote.origin.url"], cwd=gitReferenceFiles).decode("utf-8")
1088+
gitReferenceFilesURL = check_output_log(["git", "config", "--get", "remote.origin.url"], cwd=gitReferenceFiles).decode("utf-8")
10891089
except subprocess.CalledProcessError as e:
1090-
print(str(e))
1090+
print(e)
10911091
gitReferenceFilesURL = gitReferenceFiles
10921092
gitReferenceFilesVersion = check_output_log(["git", "log", '--pretty=<table><tr><th>Commit</th><th>Date</th><th>Author</th><th>Summary</th></tr><tr><td><a href="%s/%%h">%%h</a></td><td>%%ai</td><td>%%an</td><td>%%s</td></tr></table>' % (gitReferenceFilesURL), "-1"], cwd=gitReferenceFiles).decode("utf-8")
10931093
print("referenceFiles git ... got version information: %s" % gitReferenceFilesVersion)

0 commit comments

Comments
 (0)