Julian Foad wrote:
> Philip Martin wrote:
>
>> svn-sth_at_mnet-online.de writes:
>>
>>> so i assume that svnserve is not starting the hook with right parameters,
>>> i also assume that it is more like:
>>>
>>> /bin/sh -c ... $1 $2 $3
>>>
>>> instead of:
>>>
>>> /bin/sh -c ... "$1" "$2" "$3"
>>>
>>> can someone confirm on that.
>>>
>> Your question should really be directed to the users mailing list. It
>> would help if you included the failing script.
>>
>> To answer your question: Subversion doesn't invoke a shell; it execs
>> the hook directly.
>>
>
> FWIW I tested with 1.6.5 and trunk_at_883366, with a "#!/bin/sh" pre-lock
> hook, and the file name 'amazing space&ersand' was passed correctly
> as a single parameter.
>
Yup, sure. Problems begin when you try to do anything with such a
parameter and forget about properly quoting the expansion.
-- Brane
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2423469
Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.
Received on 2009-11-23 17:28:24 CET