Re: Post Commit Hook Script !!
From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Fri, 29 Jul 2011 03:04:31 -0500
On Jul 29, 2011, at 02:43, Himanshu Raina wrote:
> The scenario is like this. I have checked out copy on my local machine. Now whenever I merge the code the script which ideally should get executed doesn't execute at all. I modified the script as given below. Only changes I have done is removed IF loops and it works fine. The permissions are the same.
Your original script showed you using absolute paths to head, cut, awk, which is what you should be doing because the hook script runs with an empty environment and who knows what the $PATH is.
> if [ $Method == A ] && [ $DIR == QA ]; then
ssh? How will the authentication occur? Obviously if it prompts you for a password there's no way to respond to that prompt. So you'd need ssh keys. Make sure they're in the correct directory for the user that this hook script is running under.
> elif [ $Method == M ] && [ $DIR == QA ]; then
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.