I am a first time svn user and need a little help with a repo I created in Virtualmin.
I have a vhost: example.com
That is where I want my live site to be.
I have a sub-server for that vhost: svn.example.com
That's where my repo called stuff is
https://svn.example.com/svn/stuff
I want to get the latest version of the data out of the repo and into the public_html directory for the live site so in CLI from the /home/examp/public_html directory I enter:
svn co https://svn.example.com/svn/stuff and after asking for username and password it goes and gets the data.
The problem is: It doesn't put the data in public_html. It puts the data in a DIRECTORY called stuff in public_html :(
How do I get the new data to go into the public_html directory and not into an additional directory?
Yeah, that's typical Subversion behaviour.
You could always just move the files from the "stuff" directory down into the public_html dir.
Another option is that when you check out the directory, I think you could have it put it into an existing directory using the following:
svn co https://svn.example.com/svn/stuff public_html
You'd need to do that in the dir above public_html in that case.
-Eric
If you append a period (.) to the end of the command it will place it in the current dir.
So instead of what you have above you would use...
svn co https://svn.example.com/svn/stuff .
alternatively you could be one level down and do...
svn co https://svn.example.com/svn/stuff public_html