post-commit hook - nothing happens
Hi everybody! I'm new SVN user and need help to manage hooks. At repository\hooks folder I've created .cmd file named post-commit.cmd. Placed two strings in it: echo qqq > e:\123.txt exit 0 after I commit changes to my project - nothing happens and no file e:\123.txt is created It seems like hooks don't work at all, but if I delete " exit 0 " - while commiting changes it syas: "Post-commit failed(exit code 1)". So I think hooks work. But why nothing happens when exit 0 is present? Double-clicking post-commit.cmd causes e:\123.txt creating properly Using VisualSVN Manager 2.5.4 at Win2008ServerR2. Thanks in advance!
versus;nothing happensmeant a new version is commited to repository, no error messages shown and no file is created by the hook
mbooth;122430Is e:\ a network share?No. It's a local drive. If executing post-commit.cmd manually - 123.txt is created successfully. Is there any log of executing hook where I can see any error?
mbooth;122433Hmm, on Windows don't hook scripts have to have a ".exe" or ".bat" file extension?using .bat extension - result is the same. tried to put post-commit.exe - I don't see it starting. Nothing happens - commit is executed as if there is no hooks.
versus;122439using .bat extension - result is the same. tried to put post-commit.exe - I don't see it starting. Nothing happens - commit is executed as if there is no hooks.You can't just change a .BAT extension to .EXE - a .EXE must be a compiled executable program.
andyl;122460You can't just change a .BAT extension to .EXE - a .EXE must be a compiled executable program.Of course I know it. I just took a working programm and renamed it to post-commit.exe. But after comitting I don't see it starting.
solved solved. SVN service is starting under NETWORK SERVICE by default. By default it hasn't any rights on writing to disk. Giving rights on writing helped. Thanks to all.
1-9 of 9
Reply to this discussion
You cannot edit posts or make replies: You should be logged in before you can post.