Mirror an SVN Repo¶
svnadmin create "./${REPO_NAME}.svn"
echo -ne '#!/bin/sh\nexit 0' > "./${REPO_NAME}.svn/hooks/pre-revprop-change"
chmod +x "./${REPO_NAME}.svn/hooks/pre-revprop-change"
svnsync init "file://${PWD}/${REPO_NAME}.svn/" "${SRC_URL}"
svnsync sync "file://${PWD}/${REPO_NAME}.svn/"
git svn init "file://${PWD}/${REPO_NAME}.svn/" --no-metadata "./${REPO_NAME}.git/"
cd "./${REPO_NAME}.git/"
git svn fetch