Search code examples
androidgitsvnintellij-idea

IntelliJ IDEA thinks part of my project is subversion instead of git, how to fix this?


I have an Android project in IDEA, and added a module for testing. This module is created within the directory of the App module itself.

Since I have done that, IDEA thinks that the files in the 'test' module are under subversion version control. However, I don't know why and how, as there wis no .svn directory, and I didn't do anything. I want to add this directory to my GIT of the whole project, but even though I added the files using the GIT command line tool, IDEA only gives me subversion commands.

When I try to add files using GIT I get a error message:

svn: E155004: Cannot lock working copy '/': permission denied.

I don't really now what to do next, so any help is appreciated!


Solution

  • Check your project configuration in Settings > Version Control.

    This is where your directory/vcs mappings are configured. Remove any SVN mapping that could exists, and make sure that the whole project is mapped to Git. BTW, I don't know how this could have happened.