- if [ ! -f $i-import/.git/description ]; then
- echo "Mirror of the $i CVS module" > $i-import/.git/description
- fi
- fi
- done
-}
-
-do_push()
-{
- # Now we need to push the new commits in each of the import repos into the
- # bare repos which are the pseudo-centralized shared repos.
- cd $GITBASE/cvsimports
- for i in $MODULES; do
- echo "Push git import module cvsimports/$i-import -> $i.git"
- git --git-dir=$i-import/.git push --mirror ../$i.git/
- if [ $? -ne 0 ]; then
- echo "git push failed"
- exit 1