Parent repo - a separate branch submodule repo - a separate branch
In Bitbucket Every time I push a commit to the submodule I need to update the parent repo to the latest commit in the submodule.
This is because when I used the submodule, my parent branch is pointing to a commit, now my question is can we point the parent branch to a submodule branch rather than to a commit.
currently, my .gitmodule file in my parent repo looks like following
[submodule “arch/modules”]
path = arch/modules
url = https://bitbucket.xxx.xxxx/scm/archdev/modules.git
branch = arch/module-test
even when I pointed that to a branch , why it is still referring to a commit ?? Is there a way to make the parent repo branch point to a submodule repo branch.
Can someone address this please
Thanks in advance