Restore git output on --version

Broken by the move from utils.py to utils/__init__.py
pull/1655/merge
Daniel Hokka Zakrisson 12 years ago
parent ef357ed1f2
commit 047d089cea

@ -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…
Cancel
Save