summaryrefslogtreecommitdiffstats
path: root/cvstogit
diff options
context:
space:
mode:
Diffstat (limited to 'cvstogit')
-rwxr-xr-xcvstogit15
1 files changed, 13 insertions, 2 deletions
diff --git a/cvstogit b/cvstogit
index 8c5085c..bc2e264 100755
--- a/cvstogit
+++ b/cvstogit
@@ -25,6 +25,8 @@
#AUTHOR="RPM Fusion Sysadmins <rpmfusion-sysadmin@lists.rpmfusion.org>"
AUTHOR="Ken Dreyer <ktdreyer@ktdreyer.com>"
+RF_CVSROOT=":pserver:anonymous@cvs.rpmfusion.org:/cvs"
+
# CVS-to-Git dist name translations.
declare -A BRANCHES
@@ -77,7 +79,7 @@ git_cvsimport() {
# names to Git author emails.
git cvsimport -a \
- -d :pserver:anonymous@cvs.rpmfusion.org:/cvs/$repo \
+ -d "$RF_CVSROOT/$repo" \
$package \
-C "$package.cvsimport" || exit 1
}
@@ -241,7 +243,7 @@ do_repotree() {
popd
else
# Do a fresh owners.list checkout.
- cvs -d ":pserver:anonymous@cvs.rpmfusion.org:/cvs/$repo" co owners
+ cvs -d "$RF_CVSROOT/$repo" co owners
fi
# Cycle through each package.
@@ -300,6 +302,15 @@ do_repotree() {
# Do the rest of the conversion steps.
convert_branches $package
merge_branches $package
+ # turn into a bare repository
+ rm $package/*
+ mv $package/.git/* $package/
+ echo " sharedrepository = 1
+[receive]
+ denyNonFastforwards = true" >> $package/config
+ packagedescription=$(grep "|$package|" owners/owners.list | cut -d \| -f 3)
+ echo $packagedescription > $package/description
+ mv $package $package.git
done
popd
}