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

Re: Hook script common environment variables

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 20 Jun 2018 10:02:16 +0200

On Tue, Jun 19, 2018 at 06:39:09PM -0500, Tom Browder wrote:
> The docs mention one can use a common hook environment for multiple repos
> but so far I can’t find an example of that or any more details. I have
> looked at the example hook.env file but I don’t see any reference to global
> env vars.

It is unclear which type of server are you using.
Apache HTTPD with mod_dav_svn, or svnserve?

For svnserve, you can specify a path in svnserve's config file:
  [general]
  hooks-env = /path/to/a/global/hooks-env/file

The environment specified in the referenced file will then apply
to all repositories. The referenced file's syntax is shown in the
hook.env example you've alreay found.

For mod_dav_svn there is a similar configuration directive called
SVNHooksEnv which also points to a file.

Could you please point us at the docs you were reading which were
unclear? Maybe they need to be adjusted or updated. Thanks.
Received on 2018-06-20 10:02:49 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.