git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-http-push and hooks

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
Feb 7, 2006, 19:54 UTC
Message-ID
<20060207195458.GA7217@c165.ib.student.liu.se>
In-Reply-To
<20060206232231.GK3873@reactrix.com>
On Mon, Feb 06, 2006 at 03:22:31PM -0800, Nick Hengeveld wrote:
Show 11 quoted lines
> On Mon, Feb 06, 2006 at 09:52:03PM +0100, Bertrand Jacquin (Beber) wrote:
> 
> > Why aren't excute hooks/* (with +x perms) when I do a git-http-push ?
> > Also if i push with cg-push on the same repo but with git+ssh
> > protocol, hooks are execute.
> 
> Hooks must run on the destination server when you're doing a push.  If
> you use the git+ssh protocol, that server is running a git daemon that
> knows how to execute hooks; if you use the http/DAV protocol, that
> server does not.
> 

I know basically nothing about DAV, but wouldn't it be possible to have a CGI-script which executes the hooks upon the client's request?

- Fredrik
Previous: Nick HengeveldNext: Nick Hengeveld
Message 3 of 12 in “git-http-push and hooks”
  1. Bertrand Jacquin (Beber)Feb 6, 2006
  2. Nick HengeveldFeb 6, 2006
  3. Fredrik KuivinenFeb 7, 2006
  4. Nick HengeveldFeb 7, 2006
  5. Fredrik KuivinenFeb 7, 2006
  6. Bertrand JacquinFeb 7, 2006
  7. Junio C HamanoFeb 7, 2006
  8. Junio C HamanoFeb 7, 2006
  9. Nick HengeveldFeb 7, 2006
  10. Junio C HamanoFeb 7, 2006
  11. Nick HengeveldFeb 7, 2006
  12. Bertrand JacquinFeb 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.