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

Post-commit hook problem

From: David SANCHEZ <david.sanchez_at_iutbeziers.fr>
Date: Thu, 22 Jan 2009 09:40:24 +0100

Hi,

I'm working on a post-commit hook script, but I have a problem.

To resume the script, it takes the filename of the last commit, and send
it to an other script, who will make a scp transfer to an appliance.

But when I make the commit with the client, I have this message :

user_at_computer_client:~/depot_local/red_interne$ svn commit -m "test 5"
Envoi fichier1
Transmission des données .
Révision 80 propagée.
Attention : post-commit hook failed (exit code 126) with output:
[Error output could not be translated from the native locale to UTF-8.]

This is the post-commit script :

#!/bin/sh
LANG="en_US.UTF-8"
REPOS='/var/subversion/red_interne'
SVNLOOK="/usr/bin/svnlook diff $REPOS"
GREP="/bin/grep -Eo \"Modified:.*$\""
SED="/bin/sed 's/Modified:\ //'"
FICHIER="$SVNLOOK | $GREP | $SED"
RESULTAT=`eval $FICHIER`
/usr/bin/ssh projet_at_localhost
/var/subversion/red_interne/hooks/script.sh $RESULTAT

Thanks for any help

Regards

David SANCHEZ

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1042947

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

Received on 2009-01-22 18:14:30 CET

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.