summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Cronenworth <mike@cchtml.com>2015-01-07 09:39:11 -0600
committerKen Dreyer <ktdreyer@ktdreyer.com>2015-01-07 09:02:20 -0700
commit5a41eaff128746b93e11e62c5507fe7c3e6c9e04 (patch)
tree321c771b7da9d4650d3bc705de2ea18e4dd88519
parentee806c8dfd23b1d22f374d58873423cd4c40f2b0 (diff)
downloadrpmfusion-tools-5a41eaff128746b93e11e62c5507fe7c3e6c9e04.tar.gz
rpmfusion-tools-5a41eaff128746b93e11e62c5507fe7c3e6c9e04.tar.xz
rpmfusion-tools-5a41eaff128746b93e11e62c5507fe7c3e6c9e04.zip
Add CVSROOT variable, convert git repos into bare ones
In case one wants to run against a local CVS repo instead of remote, edit RF_CVSROOT. Also, for remote repositories, bare git repositories are required. Reviewed-by: Ken Dreyer <ktdreyer@ktdreyer.com>
-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
}