Having trouble with post-commit hook

Posted by John Isaacks on Stack Overflow See other posts from Stack Overflow or by John Isaacks
Published on 2010-06-17T21:31:15Z Indexed on 2010/06/17 21:33 UTC
Read the original article Hit count: 244

Filed under:
|
|
|

I am following this tutorial that is like the hello world for post-commit

I am using unbuntu 10.04. I installed svnnotify and ran $ which svnnotify which output:

/usr/bin/svnnotify

so I changed the path in the turorial from /usr/local/bin/svnnotify to /usr/bin/svnnotify

I also tried changing the line: #!/bin/sh to #!/bin/bash since bash is the login shell in ubuntu 10.04.

I tried to run it the way the tutorial originally had it, with my changes, and combinations of the two.

Everytime the commit is successful but I get

Warning: post-commit hook failed (exit code 1) with no output.

The original way had output not found

I am very new to linux and shell scripting and have exhausted everything I can think of. What am I doing wrong?

© Stack Overflow or respective owner

Related posts about linux

Related posts about svn