Sometimes you may want to create a local copy without any of those.svn directories, e.g. To create a zipped tarball of your source. Read the section called “Exporting a Subversion Working Copy” to find out how to do that.
I have my repository in
![Svn Svn](/uploads/1/2/5/5/125594043/928031907.png)
It is owned by
Now I want to create the initial repository structure, currently I am using
Using this, I assume the directories trunk, tags and branches are owned by root?
- Is this maybe a problem later on when using the repository?
- How to create the initial repository structure so trunk, branches and tags are owned by www-data:www-data? Any way to do this without using the http:// url which requires me to authenticate first?
Thanks for any hint!
stefan.at.wpfstefan.at.wpf
1 Answer
You should not need to use sudo to run
svn mkdir
. The repository has its own permissions, but subversion should handle those for you; the subversion command line interface (or any other interface such as Tortoise SVN) should be public and should not require superuser access to use. When you check files out, they should be owned by you.svn mkdir
runs in two different modes: it can act directly on a URL, in which case the it also commits the new directory, or it can act on a local working copy. Here's what svn help mkdir
has to say on the subject:If you're not seeing the results that you want when you try running
svn mkdir URL
, try checking the repository out, running svn mkdir
to create the tags/branches/trunk, then committing the changes. At the very least, this should give you more information if anything goes wrong.Barton ChittendenBarton Chittenden