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

Re: A little problem with post-commit hook

From: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2006-12-06 18:25:35 CET

Manuel Vzquez Acosta wrote:
> Here is my current post-commit script:
>
> #!/bin/bash
> REPOS="$1"
> REV="$2"
> logger "post-commit called with $REPOS#$REV"
> REPOS_URL="http://localhost/svn-meta"
> TEMPNAME=/tmp/svn-meta.$REV
> svn co -r $REV "$REPOS_URL" "$TEMPNAME"
^^^^^^^^^^^^^^

> However, it seems that svn co can't be executed at this point. Am I
> right? Should I defer a little bit the execution of svn co?

You can't rely on hook scripts inheriting any path. Use an explicit
path for svn, like '/usr/bin/svn co ...' or similar.

Unless you allow anonymous checkouts you might also want to set up
explicit authentication paramters.

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 6 18:24:09 2006

This is an archived mail posted to the Subversion Users mailing list.