title: Android Studio syncs git submodules across projects
body: <p>I have a main project that includes several other GIT projects as submodules. All projects are branched after git-flow. The main project always uses the <code>master</code> branch of the submodules. New features within the submodules are developed inside a separate IDE window in the <code>develop</code> or <code>feature</code> branches.</p>
  
  <p>The problems begin if I open both the main project and a submodule in different windows of AndroidStudio. The IDE seems to recognize that the submodule of the main project's window is the same repository as the module opened in the other window and starts to keep the checked out commit in sync. Example:</p>
  
  <ol>
  <li>I open the main project with submodule A checked out on the last commit of <code>master</code> branch.</li>
  <li>I open the module A project in a new IDE window checked out on the last commit of the <code>develop</code> branch.</li>
  <li>I checkout a different commit in the submodule project's window.</li>
  <li>The submodule within the main project is automatically updated to the commit of step 3. Git shows that the submodule commit has changed.</li>
  <li>I change the branch of the main project's submodule back to <code>master</code>. The git change disappears, but the module A is also checked out on the <code>master</code> branch in its own IDE window.</li>
  </ol>
  
  <p>This prevents me from opening both the module and the main project in AndroidStudio simultaneously.</p>
  
  <p>I've checked the following while trying to find the cause of this bug:</p>
  
  <ul>
  <li>The main project's submodule folder and the folder of the module project are not at the same location.</li>
  <li>Git is not the cause. I've closed the IDE and checked out different commits via the Git-CLI. The commits stay different across both projects.</li>
  <li>Once both projects are open inside AndroidStudio it does not matter how I change the commit (IDE built-in Git-UI, IDE built-in terminal + Git CLI, External terminal + Git CLI). The commits start syncing once I check out a different commit.</li>
  <li>The IDE uses the system's Git binaries.</li>
  </ul>
  
  <p>Is this a bug or a feature? If the latter, is there a way to disable it?</p>