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

Re: Push over WebDAV and hooks

From
Mike Hommey <mh@glandium.org>
Date
Aug 21, 2008, 21:15 UTC
Message-ID
<20080821211510.GA18403@glandium.org>
In-Reply-To
<20080821201126.GY3483@spearce.org>
On Thu, Aug 21, 2008 at 01:11:26PM -0700, Shawn O. Pearce wrote:
Show 17 quoted lines
> Nikolai Prokoschenko <nikolai@prokoschenko.de> wrote:
> > I have a (bare) repository on my server. Since I need to access it from  
> > firewalled networks, I can't go with git protocol or SSH; I thought  
> > WebDAV is the way to go. However I've noticed that my hooks are not  
> > executed and could not really think of a way the could ever work, since  
> > WebDAV is essentially a virtual hard drive without any execution  
> > capability. So am I right, hooks aren't supposed to work with WebDAV and  
> > so I'd have to find a way to use SSH or git:// to push changes?
> 
> Correct.  Hooks can only be executed if you use SSH or git:// to push
> the changes, as there is no remote execution available via WebDAV.
> 
> That said if someone was really interested in this they could try
> to make hook CGIs and teach git-http-push how to execute them by
> sending a GET to the proper URL.  But then you are relying on the
> client to honor the hooks, and only newer clients (post that change)
> would support it.

One can surely set special PUT action scripts for some special files, such as refs. But one needs to know how to write such action scripts and to have enough apache/webserver priviledge to activate them.

Mike
Previous: Nikolai Prokoschenko
Message 4 of 4 in “Push over WebDAV and hooks”
  1. Nikolai ProkoschenkoAug 21, 2008
  2. Shawn O. PearceAug 21, 2008
  3. Nikolai ProkoschenkoAug 21, 2008
  4. Mike HommeyAug 21, 2008

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.