Recipe for subversion-to-git for mysqlpp

Whereas

mysql++ has some minor issues, it is time to develop & present the remediations.

Previously

For mod-ndb we had Recipe for subversion-to-git for mod-ndb
For dbd-modules we had git svn, svnsync | Git and Subversion

Current

mysql++ seems to be mastered at Gna!

Recipe

$ cd /vault/git/svn
$ svnadmin create mysqlpp
$ cat > mysqlpp/hooks/pre-revprop-change
#!/bin/sh
exit 0;
^D
$ chmod +x mysqlpp/hooks/pre-revprop-change
$ svnsync init file:///vault/git/svn/mysqlpp http://svn.gna.org/svn/mysqlpp
Copied properties for revision 0.

$ svnsync sync file:///vault/git/svn/mysqlpp 
... hundreds of lines ...

$ cd /vault/git/clones
$ git svn clone file:///vault/git/svn/mysqlpp -T trunk -b branches -t tags

Also, -s is the same as -T trunk -b branches -t tags

2 thoughts on “Recipe for subversion-to-git for mysqlpp

  1. To check out into a bare repository, one must first check out into a non-bare repository and then make it bare

    $ git svn clone --bare file:///vault/git/svn/mysqlpp --stdlayout
    $ mv mysqlpp/.git mysqlpp.git
    $ cd mysqlpp.git
    $ git config --bol core.bare true
    $ rm -rf mysqlpp # keep mysqlpp.git