Fix permission denied error in git-prompt-info

When moving into a git repo of another user, an error was shown on every
prompt:
fatal: unable to access '.git/config': Permission denied