I accidentally committed a folder named .svn
to a Subversion repository. Now when I try to check out or update I get this error message:
svn: Failed to add directory 'oops/conferences/.svn': an unversioned directory of the same name already exists
I removed the directory in the next commit, but that didn't help. Any ideas?
svn, also known as the working copy's administrative directory. The files in each administrative directory help Subversion recognize which files contain unpublished changes, and which files are out of date with respect to others' work.
svn files may be inserted into the source code tree and there is also usually a top-level directory named . svn (just the extension, no root name).
To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…
Have you tried to remove the folder directly in the SVN repository?
svn delete http://my.svnserver.org/path/.svn
Most SVN commands can take either a local path into the working copy or an URL into the repository. You should be careful with the latter, since this performs the action directly, without any need to commit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With