git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git hooks are not called over HTTP
@ 2008-10-17  6:23 KwangYul Seo
  2008-10-17  9:22 ` Jakub Narebski
  0 siblings, 1 reply; 3+ messages in thread
From: KwangYul Seo @ 2008-10-17  6:23 UTC (permalink / raw)
  To: git

Hi,

I have setup a git repository with post-receive and post-update
enabled. I configured hooks.envelopesender and hooks.mailinglist. I
confirmed that it works fine with push from local repositories.
However, hooks are never called when push is done over HTTP. I added
'echo abc' to post-receive to see if it is called or not. With local
push, abc was printed, but with HTTP push it was not printed. What is
the problem here?

BTW, I use Ubuntu hardy.

Regards,
Kwang Yul Seo

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

* Re: Git hooks are not called over HTTP
  2008-10-17  6:23 Git hooks are not called over HTTP KwangYul Seo
@ 2008-10-17  9:22 ` Jakub Narebski
  2008-10-17 14:11   ` Shawn O. Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2008-10-17  9:22 UTC (permalink / raw)
  To: KwangYul Seo; +Cc: git

"KwangYul Seo" <kwangyul.seo@gmail.com> writes:

> I have setup a git repository with post-receive and post-update
> enabled. I configured hooks.envelopesender and hooks.mailinglist. I
> confirmed that it works fine with push from local repositories.
> However, hooks are never called when push is done over HTTP. I added
> 'echo abc' to post-receive to see if it is called or not. With local
> push, abc was printed, but with HTTP push it was not printed. What is
> the problem here?

The "problem" here (which is very much the way HTTP protocol was
designed) is that it isn't _git_ that updates repository on remote
side on push (which knows about hooks), but _web server_ via WebDAV.
And web server knows nothing about hooks.

Perhaps that would get improved when "smart" HTTP protocol gets
implemented (currently in the phase of design, I think just after
designing protocol).

-- 
Jakub Narebski
Poland
ShadeHawk on #git

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

* Re: Git hooks are not called over HTTP
  2008-10-17  9:22 ` Jakub Narebski
@ 2008-10-17 14:11   ` Shawn O. Pearce
  0 siblings, 0 replies; 3+ messages in thread
From: Shawn O. Pearce @ 2008-10-17 14:11 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: KwangYul Seo, git

Jakub Narebski <jnareb@gmail.com> wrote:
> "KwangYul Seo" <kwangyul.seo@gmail.com> writes:
> 
> > I have setup a git repository with post-receive and post-update
> > enabled. I configured hooks.envelopesender and hooks.mailinglist. I
> > confirmed that it works fine with push from local repositories.
> > However, hooks are never called when push is done over HTTP.
> 
> Perhaps that would get improved when "smart" HTTP protocol gets
> implemented (currently in the phase of design, I think just after
> designing protocol).

Yes.  The Git-in-HTTP protocol for push basically calls for an
embedding of send-pack/receive-pack's protocol into HTTP, and
implementation wise will probably be invoking git-receive-pack on
the web server side of the connection.  So if/when that finally
gets implemented we'd run hooks over HTTP, but *ONLY* if both sides
support the new Git-in-HTTP protocol.

If both sides are still using WebDAV, no hooks, for the reason you
cited earlier.

-- 
Shawn.

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

end of thread, other threads:[~2008-10-17 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17  6:23 Git hooks are not called over HTTP KwangYul Seo
2008-10-17  9:22 ` Jakub Narebski
2008-10-17 14:11   ` Shawn O. Pearce

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).