We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0893705 + 5ed2f16 commit 6a5932bCopy full SHA for 6a5932b
contrib/devtools/github-merge.py
@@ -165,7 +165,7 @@ def main():
165
# Run test command if configured.
166
if testcmd:
167
# Go up to the repository's root.
168
- toplevel = subprocess.check_output([GIT,'rev-parse','--show-toplevel'])
+ toplevel = subprocess.check_output([GIT,'rev-parse','--show-toplevel']).strip()
169
os.chdir(toplevel)
170
if subprocess.call(testcmd,shell=True):
171
print("ERROR: Running %s failed." % testcmd,file=stderr)
0 commit comments