git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Push over WebDAV and hooks
@ 2008-08-21 19:48 Nikolai Prokoschenko
  2008-08-21 20:11 ` Shawn O. Pearce
  0 siblings, 1 reply; 4+ messages in thread
From: Nikolai Prokoschenko @ 2008-08-21 19:48 UTC (permalink / raw)
  To: git

Hello,

I'm sorry for a dumb novice question, but there is something I don't 
quite understand and neither the docs nor all the blog entries on the 
net are really clear on this.

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?

Thanks.

Nikolai.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Push over WebDAV and hooks
  2008-08-21 19:48 Push over WebDAV and hooks Nikolai Prokoschenko
@ 2008-08-21 20:11 ` Shawn O. Pearce
  2008-08-21 20:13   ` Nikolai Prokoschenko
  2008-08-21 21:15   ` Mike Hommey
  0 siblings, 2 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2008-08-21 20:11 UTC (permalink / raw)
  To: Nikolai Prokoschenko; +Cc: git

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.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Push over WebDAV and hooks
  2008-08-21 20:11 ` Shawn O. Pearce
@ 2008-08-21 20:13   ` Nikolai Prokoschenko
  2008-08-21 21:15   ` Mike Hommey
  1 sibling, 0 replies; 4+ messages in thread
From: Nikolai Prokoschenko @ 2008-08-21 20:13 UTC (permalink / raw)
  To: git

Shawn O. Pearce wrote:
> 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.

Thank you for the quick answer. I'm off to evaluating other options...

Nikolai

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Push over WebDAV and hooks
  2008-08-21 20:11 ` Shawn O. Pearce
  2008-08-21 20:13   ` Nikolai Prokoschenko
@ 2008-08-21 21:15   ` Mike Hommey
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Hommey @ 2008-08-21 21:15 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Nikolai Prokoschenko, git

On Thu, Aug 21, 2008 at 01:11:26PM -0700, Shawn O. Pearce wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-21 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 19:48 Push over WebDAV and hooks Nikolai Prokoschenko
2008-08-21 20:11 ` Shawn O. Pearce
2008-08-21 20:13   ` Nikolai Prokoschenko
2008-08-21 21:15   ` Mike Hommey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).