Post-commit hooks not working
Hi,
I saw some posts with the same subject, but they're not exactly like.
My hooks/post-commit:
configure multiple project settings below
SVNLOOK = which svnlook.strip LOG_FILE =
'/tmp/svn-hooks.log'
OPTIONS = { :token => 'MY_TOKEN', :users => { 'martin' => "MY_TOKEN" }, :account => 'http://myname.lighthouseapp.com', :project => '6162-project', :prefix => /^trunk/ }
MY_TOKEN is the same both places, I'm the only user.
$ svn commit -m "New feature is implemented and tested [#37 tagged:deleted state:resolved]"
Nothing happens to Ticket #37. Any idea why?
Discussions are closed to public comments.
If you need help with Lighthouse please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
1 Posted by Martin on 27 Mar, 2008 01:37 PM
Ouch, the cut'n paste got a bit messed up.
( http://pastie.caboo.se/171506 )
post-commit:
configure multiple project settings below
SVNLOOK =
which svnlook.strip LOG_FILE = '/tmp/svn-hooks.log'I only made changes to this part:
OPTIONS = { :token => 'MY_TOKEN', # I'm the only user, should I use the token both places? :users => { 'martin' => "MY_TOKEN" }, :account => 'http://myself.lighthouseapp.com', :project => '6162-myproject', # the project name is myproject, but when viewing it in the browser, I see 6162 added to myproject in the URL :prefix => /^trunk/ }
ls -l
-rwxrwxr-x 1 root root 2432 Mar 26 17:29 /var/www/svn/myproject/hooks/post-commit
svn commit works, but nothing happens to Lighthouse
2 Posted by Rick on 27 Mar, 2008 05:32 PM
Have you tried running the post-commit yourself?
3 Posted by Martin on 06 Apr, 2008 08:19 PM
My bad, I had two different svn servers. Implemented the post-commit hook the one I wasn´t using.
Sorry. :)
Now I get this error instead: Warning: 'post-commit' hook failed with error output: (No output)
4 Posted by Martin on 07 Apr, 2008 08:30 AM
As you refered to the post-commit as a rake task in topic Subversion post-commit does nothing I tried to run it like this:
rake /var/www/svn/squeak/hooks/post-commit /local/ruby/1.8.6-p5000//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- rake (LoadError)That´s obvious wrong, but since it´s not working i figured I might give it a try.
5 Posted by Martin on 07 Apr, 2008 01:27 PM
Ok, I did a freash install of ruby-1.8.6-p114 (was running -p5000 previously)
The status is now:
ruby /var/www/svn/squeak/hooks/post-commit
svnlook: missing argument: r Type 'svnlook help' for usage.
6 Posted by Martin on 08 Apr, 2008 02:58 PM
Rick, please delete this thread.. I posted without thinking first.
I´m back to where $ svn commit -m “New feature is implemented and tested [#37 tagged:deleted state:resolved]” gives Warning: 'post-commit' hook failed with error output: (nothing)