I have a submodule, let's call it my-submodule
. And two projects that use this submodule: project-accounts
/ project-proxy
.
What I did.
- In
project-accounts
I created new branchfeature-1
from remotedevelop
branch formy-submodule
. Did commitcommit-1
and pushed to this new branch (submodule). - In
project-accounts
(in main project) I also create new branch, did some changes, then commitcommit-2
and push. In changes I can see that shared module now links to the new commits (hash was 1234567, now 7654321 - akacommit-1
). Subproject commit appeared. - In
project-proxy
I rangit submodule update --recursive
. Then didgit pull origin feature-1
. Changes appeared. Now I want to make it so that this project also links to new commit in submodule. But when I performcommit
git doesnt see any changes, so no subproject commit available.
How to fix it?