Hello,
Sorry if this has been asked a thousand times. Make it 1000+1.
I want to "freeze" a submodule to a specific revision or hash in time. I do
not want to necessarily track with master or HEAD, per se.
After I have updated, initialized, and so forth, is there anything besides
the branch I need to specify in the .gitmodules file?
For instance,
[submodule "MySubRepo"]
path = MySubRepo
url = https://github.com/somesubrepo/somesubrepo.git
branch = master
The above would track the current master; HEAD, I am assuming.
[submodule "MySubRepo"]
path = MySubRepo
url = https://github.com/somesubrepo/somesubrepo.git
branch = 5e8698e8e6af4558a280a0cfaa2da5e3d9c7e75b
Where as the above branch would free the submodule to the specified branch
(in this case, SHA1) in time.
Have I understood that correctly? At least I could not find any other
documentation that would lead me to believe otherwise, but I just wanted to
double check.
All repo names and hashes are fictitious.
Thanks!
Best,
Michael Powell
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.