Abdel, Pavel,

(and other Git-lovers),

The LyX repository on Gitorious now contains the full history. Using
the following steps, you can checkout this repos and connect it to svn
afterwards, so you can sync the repos to svn yourself.


# 1. checkout the git repository from gitorious
git clone g...@gitorious.org:lyx/lyx.git

# or for read-only access:
#git clone git://gitorious.org/lyx/lyx.git

# 2. Initialize git svn, this should be the same as the line with
#    which the repository is created, see http://wiki.lyx.org/Devel/Git
git svn init svn://svn.lyx.org/lyx/lyx-devel/ -T trunk -b branches -t tags

# 3. Set the svn trunk branch to the current master
cd lyx
copy .git\refs\heads\master .git\refs\remotes\trunk

# 4. rebuild rev_map
git svn fetch -r <last_revision>

# 5. retrieve new commits from svn
git svn fetch

# 6. update to svn head, i.e fast-forward master branch to remotes\trunk
git svn rebase

# 7. push new commits to gitorious
git push origin master

# From now on, updating the repository means repeating steps 5--7.

Please, let me know whether this works for you too.

Some links:

http://wiki.lyx.org/Devel/Git,
http://trac.parrot.org/parrot/wiki/git-svn-tutorial,
http://www.kernel.org/pub/software/scm/git/docs/git-svn.html

Vincent

Reply via email to