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

Re: Post commit script running 'svn log'

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-07-26 19:44:14 CEST

On Jul 26, 2006, at 18:55, Kavika Vollmar wrote:

> I am very confused: I am trying to run
> 'svn log --verbose -r x:y' from a post-commit script in order to send
> emails out after each commit.
> Since these post-commit scripts are execute from apache with no valid
> user name specified, I can not get
> Authenticated. (We use the LDAP authentication.)
> The only way I could get this to work is to explicitly specifiy
> '--username ****** --password ****' for the
> 'svn log' command my post-commit script, which is highly insecure.

Use the svnlook command instead of the svn command. svnlook operates
on filesystem paths, not URLs, and so there will be no authentication
requirement; if filesystem permissions let the apache user read the
repository, then the hook will be able to read it too.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 26 19:45:50 2006

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.