From 63b4f8dd80d0e2a8b3a5194563cae628620f5fa6 Mon Sep 17 00:00:00 2001 From: Anastasis Andronidis Date: Tue, 4 Sep 2012 17:12:16 +0300 Subject: [PATCH] small typo --- lib/ansible/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index 5c6b4eba94d..3374510e13b 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -323,7 +323,7 @@ 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') - ''' Check if the .git is a file. If it is a file, it means that we are in a submodule structure. ''' + 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. ''' if os.path.isfile(repo_path):