Skip to content

Commit 85977ba

Browse files
authored
Fix git error (#235)
* Fixing git config get - Fixes `error: key does not contain a section: get` - The argument is `--get` * Removing extra quote
1 parent 337a009 commit 85977ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.CI/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def runRegressiontest(branch, name, extraFlags, omsHash, dbPrefix, sshConfig, om
701701
"""
702702
FMI_TESTING_FLAG="--fmi=true --fmisimulator=${env.HOME}/saved_omc/OMSimulator/install/bin/OMSimulator --default=ulimitExe=50"
703703
if (name.contains('cvode')) {
704-
FMI_TESTING_FLAG += " --fmuType='cs'"
704+
FMI_TESTING_FLAG += " --fmuType=cs"
705705
}
706706
}
707707

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)