svn - how to write post-commit hook to automatically synchronize two repositories -



svn - how to write post-commit hook to automatically synchronize two repositories -

i trying synchronize 2 repositories using subversion (svn), , using visualsvn on both source , mirror servers.

i able synchronize them manually, i.e. through command-line, want triggered automatically using post commit hook of master repository.

i writing next code in post-commit hook of source repository (master) automatically sync mirror repository (slave):

svnsync --non-interactive --sync-username syncuser --sync-password syncuserpassword sync mirror-repository-url

but when check in file source repository (master) shows next error:

**post-commit hook failed(exit code 1) output: svnsync:e230001:unable connect repository @ url 'mirror-repository-url' svnsync:e230001:server ssl certificate verification failed; certificate issued different hostname; issuer not trusted**

but getting file in source repository in svn (master) not mirror repository (slave), tried manually giving same code written in post-commit hook of master repository through command line of mirror server , mirror repository(slave) got synchronized new revision added source repository(master)

how overcome problem while synchronizing automatically using post-commit hook? did go wrong? can suggest thought overcome error?

so tried manually giving same code written in post-commit hook of master repository through command line of mirror server

first, testing on wrong server. if there problem execution of post-commit hook on master server, should test commands on master server.

usually when see difference in behavior between command line , in context of post-commit hook, related fact no environment variables set. svn book section on hooks:

for security reasons, subversion repository executes hook programs empty environment—that is, no environment variables set @ all, not $path (or %path%, under windows). because of this, many administrators baffled when hook programme runs fine hand, doesn't work when run subversion. sure explicitly set necessary environment variables in hook programme and/or utilize absolute paths programs.

svn ssl version-control

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -