New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svn post-commit hook not working #743

Closed
robmcmullen opened this Issue Feb 21, 2012 · 8 comments

Comments

Projects
None yet
1 participant
@robmcmullen
Owner

robmcmullen commented Feb 21, 2012

[Trac time 20090813 184123Z] The svn post-commit hook is not being automatically triggered.

Running it by hand using:

cd svn/peppy/hooks
python trac-post-commit-hook.py -p $HOME/trac_sites/peppy-mysql/ -r 2204

works, but it's never getting that far.

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20090813 185444Z] Getting:

error [Errno 13] Permission denied: '{home}/trac_sites/peppy-mysql/log/trac.log'
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20090813 191227Z] 1b69baa Refs #743: added some info in changelog to test post-commit hook

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20090813 212351Z] 6d9f1e5 Refs #743: added more changelog comments for 0.11 release

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20090813 212607Z] Fixed by changing permissions on the trac logfile.

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20091202 190710Z] 619c627 Refs #743: added date to post-commit script output

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20091202 192202Z] It's never getting triggered by svn, apparently. Using a svn-checked-out copy instead of git-svn, getting a whole bunch of permission errors, which are probably the culprit:

Warning: 'post-commit' hook failed with error output:
touch: cannot touch `/tmp/post-commit-hook-ran.2': Permission denied
/home/robm351/svn/peppy/hooks/post-commit: line 7: /tmp/post-commit-hook-ran.2: Permission denied
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20091202 192212Z] 3819251 Refs #743: another comment

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20091202 192234Z] Yep, that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment