When repo is used, '--version' option does not display correct version
information (i.e. Git hashes). This change makes the parsing of the
version info correctly recognize svn, git, git-svn and repo directory
because repo also has .git/svn. This in turn enables the option displays
correct version information with repo. Tested with git, svn, git-svn
and repo with this change.