stafwag Blog

staf wagemakers blog

CGIpaf Uploaded to Github

I finally converted the cgipaf cvs repository to github.

I used cvs2git It took a bit longer than expected.

My first attempt didn’t had the release tags right.

Adding –retain-conflicting-attic-files to cvs2git resolved this issue.

You’ll find how I did it it below.

cvs2git.sh:

1
2
3
4
5
6
cvs2git \
    --blobfile=cvs2git-tmp/git-blob.dat \
    --dumpfile=cvs2git-tmp/git-dump.dat \
    /var/lib/cvs/cgipaf \
    --username=staf \
    --retain-conflicting-attic-files

create local git:

1
2
3
4
5
6
7
$ mkdir ~/newgit
$ cd ~/newgit
$ mkdir cgipaf
$ cd cgipaf
$ git init
Initialized empty Git repository in /home/staf/newgit/cgipaf/
$ 

import.sh:

1
2
3
4
#!/bin/bash

git fast-import --export-marks=/home/staf/cvs2git-tmp/cvs2git-marks.dat < /home/staf/cvs2git-tmp/git-blob.dat
git fast-import --import-marks=/home/staf/cvs2git-tmp/cvs2git-marks.dat < /home/staf/cvs2git-tmp/git-dump.dat

push to github:

1
2
git remote add origin git@github.com:stafwag/cgipaf.git
git push origin --mirror

Comments