fix error when not in repo (e.g. clone)
fix error when not in repo (e.g. clone)

When doing e.g. a git clone, the git rev-parse command to get the root
dir was printing an error.

mbirtwell/git-svn-hooks,rkitover/git-svn-hooks