Just for convenience, paste this in a git bash window:
while true; do date; echo "Polling svn server..."; git svn fetch;
echo "Sleeping."; sleep 300; done
That's all folks!
All the posts here have been copied over to my main site at https://0x5.uk/ - this blog is kept online for posterity, avoiding bit-rot / link-rot, and the comments.
git svn clone -T trunk/openlayers/ -t tags/openlayers/ -b branches/openlayers/ http://svn.openlayers.org/ openlayers.git--no-follow-parent to avoid the docs-2.8 tag pulling in docs history but not going to re-clone now. If you are repeating this, try this instead:git svn clone --no-follow-parent -T trunk/openlayers/ -t tags/openlayers/ -b branches/openlayers/ http://svn.openlayers.org/ openlayers.git
cd openlayers.git
for x in `git for-each-ref --format="%(refname)" 'refs/remotes/tags/docs*'`; do git update-ref -d $x; done
git reflog expire --all
git gc --aggressive --prune
git svn fetch
git svn clone -T trunk/doc http://svn.openlayers.org/ openlayers-doc.git
git gc --aggressive --prune
#!/bin/bash -v
rm -rf test-case
mkdir test-case
cd test-case/
svnadmin create svnrepo
export repo="`pwd`/svnrepo"
mkdir -p import/a
echo '1' >> import/a/file.txt
svn import -m 'initial import' import file://$repo/trunk/
svn co file://$repo/trunk/ checkout
echo '2' >> checkout/a/file.txt
svn ci -m "file modified" checkout
svn mv -m "moving file" file://$repo/trunk/a file://$repo/trunk/b
svn up checkout
echo '3' >> checkout/b/file.txt
svn ci -m "modified again" checkout
svn log -v checkout
mkdir -p gitcopy/a
git svn clone file://$repo/trunk/ gitcopy/a
cd gitcopy/a
git filter-branch --subdirectory-filter a #fails [1]
cd ../../
mkdir gitcopy/b
git svn clone file://$repo/trunk/ gitcopy/b
cd gitcopy/b
git filter-branch --subdirectory-filter bmkdir ~/project.git
cd ~/project.git
git-svn clone svn://project-server/trunk
git repack #for good measuremkdir /media/flash/project.git
git --bare init /media/flash/project.gitgit remote add flash /media/flash/project.gitrm /media/flash/project.git/hooks/*git push flashgit push flash mybranchmkdir ~/project.git
cd ~/project.git
git-svn clone svn://project-server/trunk
git repack #for good measuregit remote add flash /media/flash/project.git
git pull flash master
git pull flash mybranch #if you likegit push flashgit pull flash mastercd /media/flash/project.git
git --bare log #to see how many changes don't have svn information
git --bare reset HEAD~1cd ~/project.git
git push flash