Port from svn to git