I am just starting to use subversion with the goal of using it to manage my site.
I installed repositories, imported all the files for the website, and I am happy to check things, and this is a wonderful experience, without having to remember which files I changed on which computer so that I can capture the latest version from a live server!
I set up a testing place where I can test svn exportmy website before uploading it to a live server. I would like the export to be automatic, so I don’t need to use SSH on the server (which I can’t always do, depending on where I am).
I created a post-commitscript that just did:
$ svn export <reposURL> <testingDIR> --force
gave the script a hook to execute all permissions, and <testingDir>has access rights to the group for the web server.
When I did svn cifrom my laptop, I got an error:
Transmitting file data .svn: Commit failed (details follow):
svn: MERGE of '<pathOfRepos>': 200 OK
(http://svn.mydomain.com)
however, the subsequent traveling salesman launched an error, due to which my working copy was outdated, and discovers that the commit was indeed successful, the export was not performed.
Can someone tell me where I was wrong?
(Running the latest version of ubuntu / apache / svn)
- Change:
After scrambling and trying various things, I was able to understand that the reason why it does not work is because my repository requires a username and password when accessing via the Internet. I modified the post-commit script to access the repository locally using the file: // type url, and now it works fine.
closing the question.