diff options
-rw-r--r-- | tests/testutils/repo/git.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py index 2a20bc331..9d527f904 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -68,3 +68,6 @@ class Git(Repo): 'git', 'rev-parse', 'master' ], env=GIT_ENV, cwd=self.repo) return output.decode('UTF-8').strip() + + def branch(self, branch_name): + subprocess.call(['git', 'checkout', '-b', branch_name], env=GIT_ENV, cwd=self.repo) |