i would like to know if this is possible:
- create a shared git repository that connects to cvs
- post two hooks to it:
- everytime anyone pulls from it, it imports from the cvs repository
- everytime anyone pushes to it, it exports to the cvs repository
basically create a 'lazy mirror' of a cvs repository that is completely transparent to the git users
if this is not possible what are the best method to create a cvs mirror?
ps. is git-cvsserver usable? besides the commits, checkouts and updates, can it merge two branches?
git-cvsserver
has limitations:
- Currently cvsserver works over SSH connections for read/write clients, and over pserver for anonymous CVS access.
- CVS clients cannot tag, branch or perform GIT merges.
git-cvsserver
maps GIT branches to CVS modules. This is very different from what most CVS users would expect since in CVS modules usually represent one or more directories.
You can find best practices for using Git with CVS here, with a full git-cvs setup.
You can try and add to this setup a post-receive hook and see if a git cvsexportcommit
can work from there.