diff options
-rw-r--r-- | tests/testutils/repo/git.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py index 183651180..9f617a763 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -61,9 +61,7 @@ class Git(Repo): def modify_file(self, new_file, path): shutil.copy(new_file, os.path.join(self.repo, path)) - subprocess.call([ - 'git', 'commit', path, '-m', 'Modified {}'.format(os.path.basename(path)) - ], env=GIT_ENV, cwd=self.repo) + self._run_git('commit', path, '-m', 'Modified {}'.format(os.path.basename(path))) return self.latest_commit() def add_submodule(self, subdir, url=None, checkout=None): |