Browse Source

Merge #7402: [devtools] github-merge get toplevel dir without extra whitespace

5ed2f16 [devtools] github-merge get toplevel dir without extra whitespace (Andrew C)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
6a5932bf2a
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      contrib/devtools/github-merge.py

2
contrib/devtools/github-merge.py

@ -165,7 +165,7 @@ def main(): @@ -165,7 +165,7 @@ def main():
# Run test command if configured.
if testcmd:
# Go up to the repository's root.
toplevel = subprocess.check_output([GIT,'rev-parse','--show-toplevel'])
toplevel = subprocess.check_output([GIT,'rev-parse','--show-toplevel']).strip()
os.chdir(toplevel)
if subprocess.call(testcmd,shell=True):
print("ERROR: Running %s failed." % testcmd,file=stderr)

Loading…
Cancel
Save