[oe] monotone/git (was hello...)
Chris Larson
clarson at kergoth.com
Thu Oct 4 20:18:08 UTC 2007
On 10/4/07, Michael Krelin <hacker at klever.net> wrote:
> \>> Wait, how do you execute a hook when pushing via webdav?
> >
> > post-update is executed in the remote repository when pushing to it.
> > In fact, the default post-update script in a new git init'd repository
> > is just a script that calls git-update-server-info, so all you have to
> > do is chmod +x foo.git/hooks/post-update and call it a day. It works
> > just fine.
>
> *Who* executes post-update script when you push to remote repository via
> webdav?
Sorry, my mistake on the mechanisms. The hook is only used,
obviously, when pushing over ssh, since you can't run a script
remotely over http. It's just that git-http-push is smart enough to
update the remote info/* if the files already exist (run
git-update-server-info on the remote side once).
--
Chris Larson - clarson at kergoth dot com
Dedicated Engineer - MontaVista - clarson at mvista dot com
Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus
More information about the Openembedded-devel
mailing list