once let me clarify what i'm doing.
as in this link http://anonscm.debian.org/git/pkg-nvidia/git-commit-notice
i changed the mode of post-receive-email in
then i linked it with the post-receive file in my prjct-dir/.git/hooks
prjct-dir/.git> cat >hooks/post-receive <<END
? echo 'i'm working' >tmp/myhook
i got a error
hooks/post-receive: Permission denied.
i think this is because of the link. is this the process to do a hook?
On Thu, Aug 11, 2011 at 7:08 PM, Konstantin Khomoutov <
> On Thu, 11 Aug 2011 17:28:44 +0530
> pavan kumar <nagubandi...@gmail.com> wrote:
> > hi, have gone through the the information.
> > i tried the examplein :
> > http://wiki.debian.org/Alioth/Git#Commit_mails_with_diff
> > i didnt get any notification while push is made to the repo.
> > what would be problem. can any one help.
> > i would like to set a notification email for a branch when a push is
> > made to it.
> Start with something as simple as writing
> echo 'it works' >/tmp/myhook
> at the top of your hook script (assuming it's a shell script, of
> course; for a different lanugage such an "I'm working" test will be
> different) and see if it at least runs when you perform the action the
> script is hooked onto.
> If you'll see that /tmp/myhook file created then the hook script works
> and the problem is elsewhere. Otherwise do figure out why the hook did
> not run (wrong name, not executable by the user with which credentials
> Git runs etc).
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at