зеркало из https://github.com/mozilla/iris.git
Pass in repo root folder to Git method
This commit is contained in:
Родитель
ffa557fb0e
Коммит
24cfdf0edf
|
@ -223,8 +223,8 @@ class PathManager:
|
|||
@staticmethod
|
||||
def get_git_details():
|
||||
repo_details = {}
|
||||
repo = git.Repo()
|
||||
repo_details['iris_version'] = 0.1
|
||||
repo = git.Repo(PathManager.get_module_dir())
|
||||
repo_details['iris_version'] = 2.0
|
||||
repo_details['iris_repo'] = repo.working_tree_dir
|
||||
repo_details['iris_branch'] = repo.active_branch.name
|
||||
repo_details['iris_branch_head'] = repo.head.object.hexsha
|
||||
|
|
Загрузка…
Ссылка в новой задаче