“‘[path]/.svn’ containing working copy admin area is missing” error

svn

I know by deleting the respective folder or a fresh checkout from the repository, followed by replacing the folder will solve the problem.

However, in my application the folder containing .svn will be deleted and and a new folder having the same name will be created. The newly created folder doesn't have the .svn folder.

When I try to commit, I get the error "'[path]/.svn' containing working copy admin area is missing". Where [path] is the path in my application.

How do I force a check-in of this?

Best Solution

I ran into a similar issue, and this worked for me:

svn rm --keep-local folder_name
svn add folder_name

This will remove the folder from version control, allowing you to keep your files in place. Then the normal svn add will add your "new" folder to version control.

-- EDIT --

Alternatively, use:

sudo rm --keep-local folder_name
svn add folder_name

This puts back my original answer as I disagree with the previous editor.