Lines Matching refs:repo
35 def CreateBranch(repo, branch): argument
46 if not os.path.isdir(repo):
47 raise ValueError('Invalid directory path provided: %s' % repo)
49 subprocess.check_output(['git', '-C', repo, 'reset', 'HEAD', '--hard'])
51 subprocess.check_output(['repo', 'start', branch], cwd=repo)
54 def DeleteBranch(repo, branch): argument
65 if not os.path.isdir(repo):
66 raise ValueError('Invalid directory path provided: %s' % repo)
68 subprocess.check_output(['git', '-C', repo, 'checkout', 'cros/master'])
70 subprocess.check_output(['git', '-C', repo, 'reset', 'HEAD', '--hard'])
72 subprocess.check_output(['git', '-C', repo, 'branch', '-D', branch])
75 def UploadChanges(repo, branch, commit_messages): argument
93 if not os.path.isdir(repo):
94 raise ValueError('Invalid path provided: %s' % repo)
101 subprocess.check_output(['git', 'commit', '-F', f.name], cwd=repo)
108 cwd=repo,