diff options
-rw-r--r-- | meta/lib/oeqa/utils/git.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/git.py b/meta/lib/oeqa/utils/git.py index a4c6741f4e..6a2987fbe8 100644 --- a/meta/lib/oeqa/utils/git.py +++ b/meta/lib/oeqa/utils/git.py | |||
@@ -30,9 +30,13 @@ class GitRepo(object): | |||
30 | cmd_str, ret.status, ret.output)) | 30 | cmd_str, ret.status, ret.output)) |
31 | return ret.output.strip() | 31 | return ret.output.strip() |
32 | 32 | ||
33 | def run_cmd(self, git_args): | 33 | def run_cmd(self, git_args, env_update=None): |
34 | """Run Git command""" | 34 | """Run Git command""" |
35 | return self._run_git_cmd_at(git_args, self.top_dir) | 35 | env = None |
36 | if env_update: | ||
37 | env = os.environ.copy() | ||
38 | env.update(env_update) | ||
39 | return self._run_git_cmd_at(git_args, self.top_dir, env=env) | ||
36 | 40 | ||
37 | 41 | ||
38 | 42 | ||