issue 20, check to see if we are in a .git directory before launching git for the head revision.