git svn, svnsync | Git and Subversion

Whereas

Google Code is now Dead Code Walking, it’s time to acquire copies of the necessary sources mastered there.

Specimen

dbd-modulesSeveral Apache modules to allow Apache 2.2+ to access databases using DBD

References

Recipe

cd /vault/git/svn/com.google.code
mkdir dbd-modules
svnadmin create dbd-modules
cat > dbd-modules/hooks/pre-revprop-change <<EOF
#!/bin/sh
exit 0;
EOF
chmod +x dbd-modules/hooks/pre-revprop-change

svnsync init file:///vault/git/svn/com.google.code/dbd-modules  http://dbd-modules.googlecode.com/svn
# one line of output

svnsync sync file:///vault/git/svn/com.google.code/dbd-modules 
# ... lots and lots of output

cd /vault/git/clones
git svn clone file:///vault/git/svn/com.google.code/dbd-modules -T trunk -b branches -t tags

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

One thought on “git svn, svnsync | Git and Subversion