You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "J. Bakshi" <jo...@infoservices.in> on 2009/10/06 11:03:41 UTC

subversion post-hook problem

Hello list,

Finally my subversion is working :-)  I have configured post-commit
script to autoupdate svn repo. To achieve this I have written a
post-commit script as below

``````````````````````````````
#! /bin/bash
svn switch --relocate  https://192.168.1.3/repos/testhook 
file:///home/SVN/testhook
/usr/bin/svn up  /srv/www/htdocs/kletterland
````````````````````````````````````

Then I have done

`````````````````
chown wwwrun:www post-commit
chown u+x  post-commit
```````````````````````

And finally the permission on the repo itself

````````````````````
chown -R wwwrun:www  home/SVN/testhook
``````````````````````

after importing some files into the repo; I have *successfully* checkout
from another machine. Now after editing a file whenever I try to commit
something I get

``````````````````````````````````````````````
Warning: post-commit hook failed (exit code 1) with output:
svn: '.' is not a working copy
Error validating server certificate for 'https://192.168.1.3:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: 192.168.1.3
 - Valid: from Thu, 04 Jun 2009 16:34:56 GMT until Fri, 04 Jun 2010
16:34:56 GMT
 - Issuer: infoservices, WB, IN
 - Fingerprint: 37:9c:48:ed:2b:27:4b:08:5b:e3:c2:c2:61:03:48:2d:b7:0f:91:86
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of
'https://192.168.1.3/repos/testhook': Server certificate verification
failed: issuer is not trusted (https://192.168.1.3)
```````````````````````````````````

obviously I accepted the certificate first by

``````````````
svn ls  https://192.168.1.3/repos/testhook
````````````````````````````
What might be the fix to cope with this problem ?

thanks

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

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

Re: subversion post-hook problem

Posted by "J. Bakshi" <jo...@infoservices.in>.
J. Bakshi wrote:
> Hello list,
>
> Finally my subversion is working :-)  I have configured post-commit
> script to autoupdate svn repo. To achieve this I have written a
> post-commit script as below
>
> ``````````````````````````````
> #! /bin/bash
> svn switch --relocate  https://192.168.1.3/repos/testhook 
> file:///home/SVN/testhook
> /usr/bin/svn up  /srv/www/htdocs/kletterland
> ````````````````````````````````````
>
> Then I have done
>
> `````````````````
> chown wwwrun:www post-commit
> chown u+x  post-commit
> ```````````````````````
>
> And finally the permission on the repo itself
>
> ````````````````````
> chown -R wwwrun:www  home/SVN/testhook
> ``````````````````````
>
> after importing some files into the repo; I have *successfully* checkout
> from another machine. Now after editing a file whenever I try to commit
> something I get
>
> ``````````````````````````````````````````````
> Warning: post-commit hook failed (exit code 1) with output:
> svn: '.' is not a working copy
> Error validating server certificate for 'https://192.168.1.3:443':
>  - The certificate is not issued by a trusted authority. Use the
>    fingerprint to validate the certificate manually!
> Certificate information:
>  - Hostname: 192.168.1.3
>  - Valid: from Thu, 04 Jun 2009 16:34:56 GMT until Fri, 04 Jun 2010
> 16:34:56 GMT
>  - Issuer: infoservices, WB, IN
>  - Fingerprint: 37:9c:48:ed:2b:27:4b:08:5b:e3:c2:c2:61:03:48:2d:b7:0f:91:86
> (R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of
> 'https://192.168.1.3/repos/testhook': Server certificate verification
> failed: issuer is not trusted (https://192.168.1.3)
> ```````````````````````````````````
>
> obviously I accepted the certificate first by
>
> ``````````````
> svn ls  https://192.168.1.3/repos/testhook
> ````````````````````````````
> What might be the fix to cope with this problem ?
>
> thanks
>
>   

It is solved now. I had to execute the command

````````````````````````````

svn switch --relocate  https://192.168.1.3/repos/testhook \
file:///home/SVN/testhook
`````````````````````

manually ; since then no more problem.

Thanks

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

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