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

RE: Frustrating newbie question re hooks

From: Campbell, Matthew A <Matthew.Campbell_at_Relizon.com>
Date: 2004-07-20 19:24:27 CEST

/etc/profile doesn't get processed for non-login sessions. Scripts are by
default not login sessions.

> -----Original Message-----
> From: Eric Carlson [mailto:eric.carlson@group-technical.com]
> Sent: Tuesday, July 20, 2004 1:21 PM
> To: users@subversion.tigris.org
> Subject: Frustrating newbie question re hooks
>
>
> Linux Fedora RC2 Final.
> Trying to do custom stuff in hooks/post-commit and I'm finding I can't
> access the environment from my script. For example, I have the lines
>
> ANT_HOME=/usr/local/ant
> export ANT_HOME
>
> in etc/profile
> but if I do this in post-commit:
>
> echo $ANT_HOME > anthome.txt
>
> the resulting file is empty. If I run post-commit from a shell it
> appears ok. Thats about the crux of it - where should I set env vars
> so the hooks can see them when triggered by a commit please?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 20 19:30:32 2004

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.