From 047d089ceab2f304c4667a37cd2011751cfc8132 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Wed, 21 Nov 2012 23:54:42 +0100 Subject: [PATCH] Restore git output on --version Broken by the move from utils.py to utils/__init__.py --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 753fb99ddb2..caefd3e9264 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -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.