CI: Not showing stdout nor stderr when checkout ref

This commit is contained in:
Fu Hanxi
2020-09-03 12:17:50 +08:00
parent cc33c1db91
commit 6f675925d8

View File

@@ -68,7 +68,7 @@ if __name__ == "__main__":
for candidate in candidate_branches:
try:
subprocess.check_call(["git", "checkout", candidate])
subprocess.check_call(["git", "checkout", candidate], stdout=subprocess.PIPE, stderr=subprocess.PIPE) # not print the stdout nor stderr
print("CI using ref {} for project {}".format(candidate, args.project))
break
except subprocess.CalledProcessError: