Lines Matching refs:subprocess
11 import subprocess
26 prev = subprocess.check_output(['git', 'config', '--local', k]).rstrip()
29 except subprocess.CalledProcessError:
32 subprocess.check_call(['git', 'config', '--local', k, v])
37 subprocess.check_call(
40 subprocess.check_call(['git', 'config', '--local', '--unset', k])
61 subprocess.check_call(['git', 'reset', '--hard', 'HEAD'])
62 subprocess.check_call(['git', 'checkout', 'main'])
63 if self._branch_name in subprocess.check_output(['git', 'branch']).split():
64 subprocess.check_call(['git', 'branch', '-D', self._branch_name])
65 subprocess.check_call(['git', 'checkout', '-b', self._branch_name,
71 subprocess.check_call(['git', 'commit', '-a', '-m', self._commit_msg])
83 subprocess.check_call(upload_cmd)
84 output = subprocess.check_output(['git', 'cl', 'issue']).rstrip()
95 subprocess.check_call(['git', 'checkout', 'main'])
97 subprocess.check_call(['git', 'branch', '-D', self._branch_name])
148 subprocess.check_output(args=['git', 'clone', remote])
155 subprocess.check_call([
157 subprocess.check_call(['git', 'remote', 'update'])
158 subprocess.check_call(['git', 'checkout', 'main'])
159 subprocess.check_call(['git', 'reset', '--hard', 'origin/main'])