ansible/ansible — pull request #930 by elventear (2012-08-22 19:05:58+00:00)
Title: Fix git version when some head files are missing.

Due to my OCD I ran 'git gc' on my repo; turns out this operation removes the text files with hash for HEADS of the different branches under .git/refs/heads. This will make ansible crash, so I added a check to see if the files are available to _gitinfo and in case they aren't just return a 'n/a'. You can set this value to whatever is more informational.