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

Re: SVN TSVN Hook Script Environment Variable Issue

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Thu, 3 Apr 2008 05:37:25 -0500

On Apr 2, 2008, at 09:45, joseph.h.dayney_at_rrd.com wrote:

> We are porting over to Solaris 10 from Solaris 9. SVN 1.4.1
> => 1.4.5 (TSVN 1.4.3) The current environment (Solaris 9)
> is working fine with no issues. Trying to duplicate the
> environment on Solaris 10, the post-commit hook script that
> rebuilds our TEST/DEV environment on a commit, is NOT executing
> from TSVN commit or from the UNIX command line commit.
>
> It executes fine if you execute by hand, IE ./post-commit
>
> I read the tip in http://svnbook.red-bean.com/en/1.1/ch05s02.html
>
>> For security reasons, the Subversion repository executes hook
>> scripts with an empty environment—that is, no environment
>> variables are set at all, not even $PATH or %PATH%. Because of
>> this, a lot of administrators are baffled when their hook script
>> runs fine by hand, but doesn't work when run by Subversion. Be
>> sure to explicitly set environment variables in your hook and/or
>> use absolute paths to programs.
>
> and am explicity setting variables and paths ... but still getting
> same results. Am I missig something else here ? Please help.
> Thanks !

Can you show us your actual hook script?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-03 12:38:34 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.