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

Frustrating newbie question re hooks

From: Eric Carlson <eric.carlson_at_group-technical.com>
Date: 2004-07-20 19:21:00 CEST

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
Received on Tue Jul 20 19:22:16 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.