In project change the commit of a submodule
Hi,
In the project gsi_starter_kit, there are two branches,
- master
- vetar_exploder. The project has three submodules (wr_cores, etherbone and gnum), and I want to change the commit of the submodules to which the vetar_exploder points and push the changes to the branch. E.g
vetar_exploder(43242aa)
--> wr_cores(88890) (submodule)
to
vetar_exploder(43242aa)
--> wr_cores(124134a) (submodule)
commit 88890 is in master branch and 124134a, is in other branch,
timing_demo
Well, normally I do this in github pulling or checking out to another branch of the submodule, then add the submodule in the root directory of the project, commit and push.
e.g
gsi_starter_kit/wr_cores/$ git checkout timing_demo ( a branch of the wr_cores repo)
gsi_starter_kit/$ git add wr_cores
gsi_starter_kit/$ git commit -m "changing pointer of submodule to HEAD of the branch timing_demo"
gsi_starter_kit/$git push origin
well if everything works like in github, if someone makes a:
git clone git@ohwr.org:white-rabbit/gsi-timing-starter-kit.git --recursive
git checkout vetar_exploder
the submodule wr_cores should point to HEAD of the branch timing_demo as I pushed, but it does not. The commit is there but the pointer didn't change.
You can take a look at the commit
Could you help out here? I know as mater of fact that this works in github, why not here? and who can I do it?
Thanks!