[Ecls-list] Git mirror problems

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Wed May 21 16:31:57 UTC 2008


Hi,

I am trying to build an automated mirror for the developer's CVS tree.
So far I have succeeded in running git-cvsimport using the little
script below, which only mirrors when there were changes in CVS. The
script uploads a local GIT repository which is then uploaded with
rsync to common-lisp.net

The problem is that publishing the resulting directory in the web
leaves me with a corrupt GIT repository. When I test the repo by using
"git clone http://common-lisp.net/project/ecl/git/ecl.git/.git/" I get
something like

cat: /home/jjgarcia/foo.git/.git/refs/remotes/origin/master: No existe
el fichero ó directorio
Warning: Remote HEAD refers to nonexistent ref, unable to checkout.

Any clues anyone? How do you do the mirroring yourself?

Juanjo

#!/bin/sh
cd $HOME/tmp
rsync common-lisp:/project/ecl/cvsroot/CVSROOT/history > cvs_timestamp
diff -q cvs_timestamp cvs_timestamp.old && exit 0
mv cvs_timestamp cvs_timestamp.old

rm -f $HOME/tmp/update_git_mirror.log
for i in ecl ecl-doc ecl-test; do
(cd $HOME/src/common-lisp.net/git/${i}.git && \
git-cvsimport -p x -v -d
:ext:jgarcia at common-lisp.net:/project/ecl/cvsroot $i) >>
$HOME/tmp/update_git_mirror.log 2>&1
done

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com


More information about the ecl-devel mailing list