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

Hook scripts not working (svn update on post-commit)

From: Alexandre <aledmb_at_gmail.com>
Date: 2006-06-05 01:38:16 CEST

Hi all,

I've configured access to my repository (version 131)
to be made through Apache (version 2058),
with basic authentication set up.

On Win32, somehow ;-), if I get to a working copy
directory and ask to "svn update" it, it doesn't need
me authenticated to do so.

As I'm working on a website project, I have built a
hook script (post-commit) so I can "svn update"
the live site working copy after every commit to the
repository. So, that script looked like the following:

path subversion_bin_dir
cd live_site_dir
svn update

With Apache authentication set up, the 3rd line
won't do what it's asked for. Unfortunately, I only
came up with this after banging my head on the
ground several times.

So, I'm writing this mournful piece of text just to
warn somebody on the same track I was fooling.
You have to tell it a username and a password,
like this:

svn update --username guest --password guest

Sorry for opening a new topic just for that, but
if I had found somebody remembering me of this,
I wouldn't be so sick as to why the hell it doens't
work!

Hope this would help someone...
Alexandre Martini
Received on Mon Jun 5 15:20:22 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.