From 6f675925d8bce02226e4563b8ae67cd2ef5a76cf Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Thu, 3 Sep 2020 12:17:50 +0800 Subject: [PATCH] CI: Not showing stdout nor stderr when checkout ref --- tools/ci/checkout_project_ref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/checkout_project_ref.py b/tools/ci/checkout_project_ref.py index e9c060a1b0..29f4b59571 100755 --- a/tools/ci/checkout_project_ref.py +++ b/tools/ci/checkout_project_ref.py @@ -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: