Problem with prompt inside .git folders

git rev-parse gets all confused in .git folders. Just give up when there.