diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-10-20 18:16:07 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-12-07 14:12:33 +0000 |
commit | 14ef3ba4ff703cfe5b524ac5d191cc0a05517ce1 (patch) | |
tree | e88c8a6df791c9988d942a3318c0d08511832643 /tests/testutils/repo/git.py | |
parent | c38208606ea52c9fb160bec51b145f2080af491c (diff) | |
download | buildstream-tracking-changes.tar.gz |
Fix teststracking-changes
Diffstat (limited to 'tests/testutils/repo/git.py')
-rw-r--r-- | tests/testutils/repo/git.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py index 46338f445..57a441a55 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -32,6 +32,11 @@ class Git(Repo): subprocess.call(['git', 'commit', '-m', 'Initial commit'], env=GIT_ENV, cwd=self.repo) return self.latest_commit() + def add_commit(self): + subprocess.call(['git', 'commit', '--allow-empty', '-m', 'Additional commit'], + env=GIT_ENV, cwd=self.repo) + return self.latest_commit() + def add_submodule(self, subdir, url): self.submodules[subdir] = url subprocess.call(['git', 'submodule', 'add', url, subdir], env=GIT_ENV, cwd=self.repo) |