Re: [PATCH] git-daemon server
On Fri, 2005-06-03 at 14:59 -0700, Linus Torvalds wrote:
Show 7 quoted lines
> Me, I want to have a fairly simple script that does the equivalent of what
> I do now for pushing:
>
> rsync -av --delete --exclude-from=.exclude .git/ master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>
> except I'd want it to do the locking and the "only accept trivial pushes"
> stuff (ie no merging, just a pure update).
$ GITCONNECTION="--tcp ...."
$ git-sync $GITCONNECTION head master master `cat .git/HEAD`
(Yeah, the 'master master' is a cheezy way to do an update, but
if you're the only one who can update the head, it's a non-issue)