Reputation: 1032
I am not able to access my https svn server using my local post commit hook. How to find the hook path in the https svn server https://**/svn/myProject/trunk
Upvotes: 0
Views: 637
Reputation: 124744
Subversion hook scripts are stored in the hooks
directory of a repository. To learn how it works it's good to create a local repository to play with:
svnadmin create /tmp/testrepo
All hooks are disabled by default, if you look inside /tmp/testrepo/hooks
you will see a bunch of files with a .tmpl
extension, for example post-commit.tmpl
. When a hook script is enabled, it should not have such extension, and it should be executable.
From a client, you cannot access to these hook scripts, or check that they exist. You need shell access on the system hosting the repository, in this case the /tmp/testrepo
dir.
You can play with hook scripts using this local repository, its URL is file:///tmp/testrepo
, for example:
$ svn co file:///tmp/testrepo /tmp/checkout
Checked out revision 0.
$ cd /tmp/checkout/
$ date > date.txt
$ svn add date.txt
A date.txt
$ svn ci -m 'first commit'
Adding date.txt
Transmitting file data .
Committed revision 1.
Upvotes: 1