summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/utils/git.py')
-rw-r--r--meta/lib/oeqa/utils/git.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/git.py b/meta/lib/oeqa/utils/git.py
index ca84680118..ae85d27663 100644
--- a/meta/lib/oeqa/utils/git.py
+++ b/meta/lib/oeqa/utils/git.py
@@ -35,6 +35,12 @@ class GitRepo(object):
35 cmd_str, ret.status, ret.output)) 35 cmd_str, ret.status, ret.output))
36 return ret.output.strip() 36 return ret.output.strip()
37 37
38 @staticmethod
39 def init(path):
40 """Initialize a new Git repository"""
41 GitRepo._run_git_cmd_at('init', cwd=path)
42 return GitRepo(path, is_topdir=True)
43
38 def run_cmd(self, git_args, env_update=None): 44 def run_cmd(self, git_args, env_update=None):
39 """Run Git command""" 45 """Run Git command"""
40 env = None 46 env = None