Use hooks in git to import and export in cvs

I would like to know if this is possible:

  • create a shared git repository that connects to cvs
  • place two hooks:
    • every time someone pulls it, it imports from the cvs repository
    • every time someone clicks on it, it exports to the cvs repository

basically create a "lazy mirror" of the cvs repository that is completely transparent to git users

If this is not possible, then what is the best way to create a cvs mirror?

ps. can git-cvsserver be used? besides commits, checks and updates, can it merge two branches?

+4
git cvs
May 12 '10 at 10:27
source share
1 answer

git-cvsserver has limitations:

  • Cvsserver is currently working on SSH connections for read / write clients and pserver for CVS anonymous access.
  • CVS clients cannot tag, branch, or execute GIT.
  • git-cvsserver maps GIT branches to CVS modules. This is very different from what most CVS users would expect, since CVS modules typically have one or more directories.

You can find best practices for using GIT with CVS here , with a full installation of git-cvs .
You can try and add a post-receive hook to this setting and see if git cvsexportcommit work there.

+1
May 12 '10 at 11:25
source share



All Articles