On Mon, May 18, 2009 at 15:11, fida aljounaidi
<fida.aljounaidi_at_gmail.com> wrote:
>
> Also
>
> When i manually execute the svnsync sync manually, it works.
>
> So i's a problem in post commit script
Hook scripts execute in an empty environment. If your post-commit hook
doesn't set a PATH variable which includes the path to svnsync, you
need to specify the full path to the svnsync binary.
> 2009/5/18 fida aljounaidi <fida.aljounaidi_at_gmail.com>
>>
>> Now, i succeded to do a commit without post-commit error (i still have the
>> merge problem (resolved after doing svn up)). But the replication dpesnt
>> work.
>> i don't know why. i can't see any error message on both mirror and source
>> server .
>>
>> Do u have any idea about that?
>>
>> Thank u
>>
>>
>>
>>
>> 2009/5/18 fida aljounaidi <fida.aljounaidi_at_gmail.com>
>>>
>>> hi
>>> thanks for your answer.
>>> But now, i have the error password Mismatch.
>>>
>>> Also i have another problem. After the commit, i have this error
>>> message in the client console :
>>>
>>> svn: Échec de la requête MERGE sur '/svn/project/branches/test'
>>> svn: MERGE de '/svn//project/branches/tes': 200 OK
>>> (http://svn.project.example).
>>>
>>> where svn.project.example is the source svn server.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 18/05/2009, Stefan Sperling <stsp_at_elego.de> wrote:
>>> > On Mon, May 18, 2009 at 07:23:57PM +0200, fida aljounaidi wrote:
>>> >> Hello
>>> >> I'm tryingA to automate the "svnsync sync" command after every
>>> >> commit.
>>> >> On the post-commit script i put the command line :
>>> >> svnsync sync http://server.subversion/svn-mirror --sync-username
>>> >> syncusername --sync-password $syncpass (the sync password contain
>>> >> the
>>> >> character '$').
>>> >>
>>> >> This doesnt work. In fact, i have this error on the client console:
>>> >> post-commit hook failed (exit code 1) with output:
>>> >> svnsync: missing argument: --sync-password
>>> >>
>>> >
>>> > On the command line, you need to put words that start with $ in quotes:
>>> > --sync-password '$syncpass'
>>> >
>>> > Otherwise the shell tries to expand the variable "syncpass".
>>> > It expands to an empty string if the variable is not defined.
>>> >
>>> > Stefan
>>> >
>>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2302698
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-18 21:27:36 CEST