Restore git output on --version
Broken by the move from utils.py to utils/__init__.py
This commit is contained in:
parent
ef357ed1f2
commit
047d089cea
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ def default(value, function):
|
|||
def _gitinfo():
|
||||
''' returns a string containing git branch, commit id and commit date '''
|
||||
result = None
|
||||
repo_path = os.path.join(os.path.dirname(__file__), '..', '..', '.git')
|
||||
repo_path = os.path.join(os.path.dirname(__file__), '..', '..', '..', '.git')
|
||||
|
||||
if os.path.exists(repo_path):
|
||||
# Check if the .git is a file. If it is a file, it means that we are in a submodule structure.
|
||||
|
|
Loading…
Reference in a new issue