port from svn to git