almost finished git and git-svn detection