Re: Push over WebDAV and hooks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nikolai Prokoschenko <nikolai@xxxxxxxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux