Need help with a virtualmin svn repo

3 posts / 0 new
Last post
#1 Sun, 03/14/2010 - 20:40
velvetpixel

Need help with a virtualmin svn repo

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?

Tue, 03/16/2010 - 08:50
andreychek

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

Mon, 03/22/2010 - 17:36
shinji

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

Topic locked