CLion and committing with git submodules

已回答

I have a project which has a git submodule inside it. I often edit the submodule itself from the project which uses the submodule. When committing the changes, The main project doesn't recognize that the submodule has been modified, and then I have to commit again the main project so that it follows the appropriate submodule reference. It doesn't always happen (started recently on all of my projects). On Projects Settings->Version Control I have the main project and the submodule registered (picture attached). What do I do wrong? Is there a way to make sure the reference from the main project to the submodule is updated when committing to the submodule?

If I do right click->Synchronize 'main project folder name' then the option to add the submodule does appear when I commit (but I have to keep doing that for every change in the submodule).

0

Looks like https://youtrack.jetbrains.com/issue/IDEA-196506 though, clicking Refresh in the Local changes should be a workaround.

0

请先登录再写评论。