[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: Post-commit script !!

From: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: Fri, 12 Sep 2008 13:06:55 +0530 (IST)

Okay it might sound stupid but why is that ? I mean why would giving an extension of .sh not make the script work?

Thanks !!
Himanshu Raina

--- On Fri, 12/9/08, Maurer, Hermann <Hermann.Maurer_at_gft.com> wrote:
From: Maurer, Hermann <Hermann.Maurer_at_gft.com>
Subject: RE: Re: Post-commit script !!
To: raina_himanshu_at_yahoo.com
Cc: users_at_subversion.tigris.org, "Ryan Schmidt" <subversion-2008c_at_ryandesign.com>
Date: Friday, 12 September, 2008, 12:59 PM

 
 

Hi,

  

the name of the script must be
post-commit and not post-commit.sh.

  

Regards,

Hermann Maurer

  

From: Himanshu Raina
[mailto:raina_himanshu_at_yahoo.com]

Sent: Friday, September 12, 2008 9:20 AM

To: Ryan Schmidt

Cc: users_at_subversion.tigris.org

Subject: Re: Post-commit script !!

  

 
  
  Hi,

  

  The script executes properly when run through command line. The
  post-commit.sh looks like this

  

  #!/bin/sh

  

  

  REPOS="$1"

  REV="$2"

  

  /usr/local/svn/ServerAdmins/hooks/commit-email.pl "$REPOS"
  "$REV" raina_himanshu_at_yahoo.com

  

  /usr/local/svn/ServerAdmins/hooks/commit-email.pl contains the actualt
  svnlook as well.

  

  

  regards

  Himanshu Raina

  

  --- On Fri, 12/9/08, Ryan Schmidt <subversion-2008c_at_ryandesign.com>
  wrote:
  From: Ryan Schmidt
  <subversion-2008c_at_ryandesign.com>

  Subject: Re: Post-commit script !!

  To: raina_himanshu_at_yahoo.com

  Cc: users_at_subversion.tigris.org

  Date: Friday, 12 September, 2008, 11:46 AM
  On Sep 12, 2008, at 01:00, Himanshu Raina wrote:

  

> I have a post-commit script which just doesn't seem to get invoked 

> whenever a commit is done. The repository path is

>

> /usr/loca/svn/ServerAdmins with ownership and permissions as given 

> below

>

> drwxrwx---  7 svn apache 4096 Sep  3  2007 /usr/local/svn/

> ServerAdmins/

>

> My apache runs as follows

> root      2663     1  0 Sep03 ?        00:00:00 /usr/local/apache2/

> bin/httpd -k start

> apache    2664  2663  0 Sep03 ?        00:01:04 /usr/local/apache2/

> bin/httpd -k start

> apache    2667  2663  0 Sep03 ?        00:01:14 /usr/local/apache2/

> bin/httpd -k start

>

> What could be wrong ?

  

Many things.

  

Is the script executable?

  

Does the script run properly from the command line?

  

Are you making sure to use absolute paths to everything (executables, 

data files, working copies) in the hook script? You must do this, 

because Apache (or svnserve) will execute the hook with an empty 

environment (no $PATH).

  

What is the contents of the hook script?

  

  

---------------------------------------------------------------------

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org

For additional commands, e-mail: users-help_at_subversion.tigris.org
 

  

Unlimited
freedom, unlimited storage. Get
it now

 
Received on 2008-09-12 09:37:22 CEST

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.