Remove extra print statements
This commit is contained in:
parent
17c356b07b
commit
42cc1a80d2
|
@ -3,7 +3,6 @@ from constants import *
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,9 +26,7 @@ for service in SERVICES:
|
||||||
# because some repo have main as default and some as master, we get the default
|
# because some repo have main as default and some as master, we get the default
|
||||||
default_branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'origin/HEAD'],
|
default_branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'origin/HEAD'],
|
||||||
cwd=service_path).decode(sys.stdout.encoding)
|
cwd=service_path).decode(sys.stdout.encoding)
|
||||||
print("default: {}".format(default_branch))
|
|
||||||
branch = default_branch.replace('origin/', '').strip()
|
branch = default_branch.replace('origin/', '').strip()
|
||||||
print("branch: {}".format(branch))
|
|
||||||
subprocess.run(["git", "checkout", branch], cwd=service_path)
|
subprocess.run(["git", "checkout", branch], cwd=service_path)
|
||||||
subprocess.run(["git", "reset", "HEAD", "--hard"], cwd=service_path)
|
subprocess.run(["git", "reset", "HEAD", "--hard"], cwd=service_path)
|
||||||
subprocess.run(["git", "pull"], cwd=service_path)
|
subprocess.run(["git", "pull"], cwd=service_path)
|
||||||
|
|
Loading…
Reference in New Issue