Silly problem I ran into

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