[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: Collin Peters <cpeters_at_intouchtrainer.com>
Date: 2004-07-13 02:22:17 CEST

I did a Dumper() on %ENV while testing and it only had these:
$VAR1 = 'SHLVL';
$VAR2 = '1';
$VAR3 = 'PWD';
$VAR4 = '/pub/intouch';
$VAR5 = '_';
$VAR6 = '/pub/intouch/media/intouch-post-commit.pl';

So setting the needed vars should take care of it? What I'm most
worried about is ssh authentication. I'll test it out tomorrow.


Eric Gillespie wrote:

> 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:23:13 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.