diff options
author | Jürg Billeter <j@bitron.ch> | 2018-09-23 16:54:30 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-09-27 14:12:34 +0100 |
commit | 107269c123cf65fbcdcc261a6c82ca694b0d9a4d (patch) | |
tree | 5382e7af1f085cd422e2e4ec07ea5f1c78b00f00 | |
parent | 900e890069427aff929c0529f34a02d891503ace (diff) | |
download | buildstream-107269c123cf65fbcdcc261a6c82ca694b0d9a4d.tar.gz |
testutils/repo/git.py: Add add_tag() method
-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 c598eb4d0..bc2dae691 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -42,6 +42,9 @@ class Git(Repo): self._run_git('commit', '-m', 'Initial commit') return self.latest_commit() + def add_tag(self, tag): + self._run_git('tag', tag) + def add_commit(self): self._run_git('commit', '--allow-empty', '-m', 'Additional commit') return self.latest_commit() |