diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-01 09:51:56 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-01 10:00:23 +0000 |
commit | 99e37b6df848257d46fa60ccaf699cf95922049a (patch) | |
tree | 8ca50855703b9f55eb6d25cf3288f4178289ae75 | |
parent | a2947e503c5c99386ba6e10be8f3d6b9e8a39cbb (diff) | |
download | buildstream-99e37b6df848257d46fa60ccaf699cf95922049a.tar.gz |
tests/testutils/repo/git.py: Use _run_git wrapper instead of git directly
-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): |