diff options
author | Michael Cronenworth <mike@cchtml.com> | 2015-01-07 09:39:11 -0600 |
---|---|---|
committer | Ken Dreyer <ktdreyer@ktdreyer.com> | 2015-01-07 09:02:20 -0700 |
commit | 5a41eaff128746b93e11e62c5507fe7c3e6c9e04 (patch) | |
tree | 321c771b7da9d4650d3bc705de2ea18e4dd88519 | |
parent | ee806c8dfd23b1d22f374d58873423cd4c40f2b0 (diff) | |
download | rpmfusion-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-x | cvstogit | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 } |