From 99e37b6df848257d46fa60ccaf699cf95922049a Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Fri, 1 Mar 2019 09:51:56 +0000 Subject: tests/testutils/repo/git.py: Use _run_git wrapper instead of git directly --- tests/testutils/repo/git.py | 4 +--- 1 file changed, 1 insertion(+), 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): -- cgit v1.2.1