post-commit hook produces error on svn commit but works when run on manually on command line

后端 未结 1 1403
隐瞒了意图╮
隐瞒了意图╮ 2021-01-27 12:44

I am currently trying to set up the post-commit hook for my subversion repository to send a email notifications. I am using subversion 1.7.8. My post-commit hook script is as

相关标签:
1条回答
  • 2021-01-27 13:10

    There could be many possible reasons why your hook isn't firing:

    • For security reasons, Subversion hook scripts are run without any environment variables being set. So, set the environment variables in the hook, and use absolute paths for running applications
    • Network drive mappings are user specific. Ensure that the drives exist for the user account under which the SVN server is running
    • Hooks don't execute from the hooks/ folder, they execute from the root server's folder

    More info:

    • Subversion Book: Implementing Repository Hooks
    • Debugging Subversion Repository Hooks

    Hope this helps.

    0 讨论(0)
提交回复
热议问题