From: Laurent Destailleur Date: Wed, 8 Jan 2014 10:50:31 +0000 (+0100) Subject: Enhance for cvs synchro X-Git-Tag: AWSTATS_7_3~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1869841afa4d6c7fd72ec93b18aa908acb0e3f3a;p=thirdparty%2FAWStats.git Enhance for cvs synchro --- diff --git a/git2cvs.sh b/git2cvs.sh index 73652804..37cb9762 100755 --- a/git2cvs.sh +++ b/git2cvs.sh @@ -2,11 +2,17 @@ # This script must be ran from a CVS repository +# Update CVS repository cvs update #cvs udpate -C -export LASTINCLUDEDID=6ddc897cd021ad61cc5661297abe61d04e8c9520 + +# Set here id of last commit +export LASTINCLUDEDID=eea6adb633b5b055b663bafcfef6e8482aeedad4 +# Set here where is store git repository export GIT_DIR=/home/ldestailleur/git/awstats/.git -git cherry $LASTINCLUDEDID HEAD | sed -n 's/^+ //p' | xargs -l1 git cvsexportcommit -c -p -v + +# Commit 5 commits at once after last commit +git cherry $LASTINCLUDEDID HEAD | sed -n 's/^+ //p' | head -n 5 | xargs -l1 git cvsexportcommit -c -p -v