git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to coax hooks into working
@ 2010-04-26 12:32 Jeremiah Foster
  2010-04-26 12:55 ` Michael J Gruber
  0 siblings, 1 reply; 9+ messages in thread
From: Jeremiah Foster @ 2010-04-26 12:32 UTC (permalink / raw)
  To: git

Hello,

	After reading this page: http://book.git-scm.com/5_git_hooks.html on git hooks and doing a test implementation, I cannot seem to coax my git hooks into working.

	My understanding is that the hook is in the right location, in the git repository on the remote server, when doing a hook based on a post-commit update. I have down chown and chmod, the code executes, it just doesn't execute when I update the git repo and push. I have also tested this on the local machine with a different hook for the client also without success. 

	We're using debian testing and git 1.7.0.2 with the http-smart backend.

	What should I do to get hooks working?

Regards,

Jeremiah

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Unable to coax hooks into working
@ 2010-04-26 18:04 Jeremiah Foster
  2010-04-26 18:11 ` Jacob Helwig
  0 siblings, 1 reply; 9+ messages in thread
From: Jeremiah Foster @ 2010-04-26 18:04 UTC (permalink / raw)
  To: git



>> 	We're using debian testing and git 1.7.0.2 with the http-smart backend.
>> 
>> 	What should I do to get hooks working?
> 
> Use the right hook.
> 
I followed that document I listed explicitly. After lining up the right command, the right hook, and the right location, including correct executable bits as well as script ownership, a functioning script was built. Yet when the corresponding git command was called, the command failed to send data to the client which leads me to believe that the hooks wasn't called.

Here is so more information on the http backend I was referring to: progit.org/2010/03/04/smart-http.html
And the manual page: www.kernel.org/pub/software/scm/git/docs/git-http-backend.html

Can I confirm that hooks work with this type of transport? 

Jeremiah

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

end of thread, other threads:[~2010-04-27 10:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 12:32 Unable to coax hooks into working Jeremiah Foster
2010-04-26 12:55 ` Michael J Gruber
2010-04-26 17:59   ` Jeremiah Foster
  -- strict thread matches above, loose matches on Subject: below --
2010-04-26 18:04 Jeremiah Foster
2010-04-26 18:11 ` Jacob Helwig
2010-04-27  8:33   ` Jeremiah Foster
2010-04-27  8:52     ` Michael J Gruber
2010-04-27  9:08       ` Jeremiah Foster
2010-04-27 10:47         ` Michael J Gruber

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