diff options
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) |