DJabberd now lives on git and github

Yann Kerherve yann at sixapart.com
Tue May 25 00:27:08 UTC 2010


So maybe there is a better way of working around the 'svn mv' that
happend back then, if you know it, please chime in by annoting the
rough steps that we took:

git svn clone -A ~/svn_authors --stdlayout http://code.sixapart.com/svn/djabberd

cd djabberd

ls -d DJabberd* > /tmp/subrepo

for i in `cat /tmp/subrepo`; do git checkout -b $i master; git reset
--hard master; git filter-branch --subdirectory-filter $i; rm -r
.git/refs/original; done

for i in bench bin dev doc etc examples website debian; do git co -b
$i master; git filter-branch --subdirectory-filter $i; rm -rf
.git/refs/original; done

git co DJabberd

git merge -s ours --no-commit debian bench bin dev doc etc examples
website; for i in debian bench bin dev doc etc examples website; do
git read-tree --prefix=$i/ -u $i ; done

git commit

for i in `cat /tmp/subrepo`; do git remote add $i
git at github.com:djabberd/$i.git; done
for i in `cat /tmp/subrepo`; do git push $i $i:master; done


Yann


More information about the Djabberd mailing list