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

Re: post-commit hook script to update a live website

From: Dongsheng Song <dongsheng.song_at_gmail.com>
Date: 2006-12-03 15:01:11 CET

Please set PATH & WC in your hook.
You do it in console correctly, not imply the hook be called correctly.

See post-commit.tmpl:

[snip]
# The default working directory for the invocation is undefined, so
# the program should set one explicitly if it cares.

# The hook program typically does not inherit the environment of
# its parent process. For example, a common problem is for the
# PATH environment variable to not be set to its usual value, so
# that subprograms fail to launch unless invoked via absolute path.
# If you're having unexpected problems with a hook program, the
# culprit may be unusual (or missing) environment variables.
[snip]

Dongsheng Song

2006/12/3, Thanos <thanos.a@fastwebnet.it>:
> > What if you use this:
> > svn up /var/www/svn -q
> > In your script, and remove the cd line.
>
> Still not working.
>
> Thanks
> A.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Dec 3 15:08:57 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.