Added check for .git directory in current, before wasting time querying git. This saves seconds on my pc.
Merge pull request #1504 from jediant/master

Exit early from git plugin if not in git repo.