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

Re: post-commit & user logon (svn+ssh)

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2004-07-13 02:13:28 CEST

Collin Peters <cpeters@intouchtrainer.com> writes:

> However, it seems that normal shell logon operations (such as
> executing .bashrc) don't get run from the whole commit process.

Make a post-commit like this:

#! /bin/sh
printenv > /tmp/out

Then look at /tmp/out. I have no idea why svn thinks it needs to
purge the environment completely, but it does. It has nothing to
do with using apache or svnserve, either way your hooks are run
in an empty (or nearly so, can't remember off the top of my head)
environment. So you will have to setup anything yourself, right
down to such basics as USER, HOME, and PATH.

Eric Gillespie <*> epg@pretzelnet.org

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 13 02:13:48 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.