Cronjob for svn fetch in git repo and upstream symlink

Jörg Sommer joerg at alea.gnuu.de
Sun May 25 11:05:33 UTC 2008


Hi,

only for the record: I'v installed an daily cronjob to run ‘git svn
fetch’ every day. So, nobody needs to run svn fetch at his site.
Everything comes in with a ‘git fetch’

0 7 * * *       cd /git/pkg-jed/jed.git && GIT_DIR=$PWD git svn fetch

The GIT_DIR is necessary, because git-svn can't deal with a bare
repository (an repository without a work tree) and creating a symlink
.git --> . in /g/p/jed.git confuses one of the maintainance scripts of
the Alioth's admins.

And git-svn can't deal with branches outside of refs/remotes/. Therefore,
I've created a symlink from refs/heads/upstream to refs/remotes/upstream
to make the upstream branch is visible by a git-fetch.

Schöne Grüße, Jörg.
-- 
Das Recht, seine Meinung zu wechseln, ist eines der wichtigsten
menschlichen Privilegien.
	     		 			(Robert Peel)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
Url : http://lists.alioth.debian.org/pipermail/pkg-jed-devel/attachments/20080525/bd9934ee/attachment.pgp 


More information about the Pkg-jed-devel mailing list