Skip to content

Commit acd1530

Browse files
committed
git-cvs-synchronizer: no need to have a populated CVSROOT
cvs2git actually needs just the directory, as a tell-tale 'This is a CVS repository'. It does not use any information stored therein. So let's get rid of it. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 247f0ca commit acd1530

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

git-cvs-synchronizer.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,17 @@ cvs2git () {
6161

6262
if test -n "$RSYNC_URL"
6363
then
64+
rsync -va "$RSYNC_URL/$CVSMODULE" cvs-mirror
65+
mkdir -p cvs-mirror/CVSROOT
6466
test -d .git || {
6567
git init
6668
mkdir -p .git/info
6769
echo /cvs-mirror/ >> .git/info/exclude
6870
}
69-
rsync -va "$RSYNC_URL/$CVSMODULE" cvs-mirror
70-
rsync -va "$RSYNC_URL/CVSROOT" cvs-mirror
7171
cvs2git
7272
elif cvsclone -d "$CVSROOT" "$CVSMODULE"
7373
then
74-
test -d cvs-mirror/CVSROOT || {
75-
mkdir -p cvs-mirror/CVSROOT
76-
cvs -d "$(pwd)"/cvs-mirror/CVSROOT init
77-
}
74+
mkdir -p cvs-mirror/CVSROOT
7875
test -d .git || {
7976
git init
8077
mkdir -p .git/info

0 commit comments

Comments
 (0)