"'[path] /. svn' containing the administrator workspace is missing" error

I know that deleting the corresponding folder or a new check from the repository and then replacing the folder will solve the problem.

However, in my application, the folder containing .svn will be deleted and a new folder with the same name will be created. The newly created folder is missing the .svn folder.

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

How do I force registration?

+4
source share
2 answers

I ran into a similar problem and this worked for me:

 svn rm --keep-local folder_name svn add folder_name 

This will remove the folder from the version control, which allows you to save your files in place. Then 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 returns my original answer as I disagree with the previous editor.

+5
source

In the general case, when you get this error, it means that the .svn directory either does not exist or does not appear to be valid. It’s best to make sure it is deleted and then add the directory to the repository again:

 svn add myfolder 
0
source

Source: https://habr.com/ru/post/1341267/


All Articles