-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Artem Frolov edited this page Feb 18, 2017
·
13 revisions
To mirror the commits made to the SVN repo on wordpress.org, a tool called git-svn is used.
This is what you do the first time you create the mirror:
# get author mapping from svn to github users
git clone git://gist.github.com/3989135.git wp-tests-lib-authors
# get commits from svn
mkdir wp-tests-lib && cd wp-tests-lib
git svn init https://develop.svn.wordpress.org/trunk/tests/phpunit/includes/
git config svn.authorsfile ../wp-tests-lib-authors/authors.txt
# push mirror up to github
git push --mirror [email protected]:AppThemes/wp-tests-lib.git
# fetch new commits from svn
git svn rebase
# push them to github
git push --mirror [email protected]:AppThemes/wp-tests-lib.git