diff options
Diffstat (limited to 'tests/testutils/repo/git.py')
-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 99b6bb384..76207718a 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -33,6 +33,9 @@ class Git(Repo): subprocess.call(['git', 'commit', '-m', 'Initial commit'], env=GIT_ENV, cwd=self.repo) return self.latest_commit() + def add_tag(self, tag): + self._run_git('tag', tag) + def add_commit(self): subprocess.call(['git', 'commit', '--allow-empty', '-m', 'Additional commit'], env=GIT_ENV, cwd=self.repo) |