I have a problem when working with git submodules.
Whenever i receive a new submodule reference from the upstream repository, executing git submodule update
gives the following result:
fatal: reference is not a tree: dd208d46ecdd1ac0d2b2594a610fe4c9150fece1
Unable to checkout 'dd208d46ecdd1ac0d2b2594a610fe4c9150fece1' in submodule path 'submodule/path'
It is important to note that the submodule has several remotes, of which the upstream remote should be used to update the submodule reference tree. I'm guessing that my problem is there, but i am not sure.
My setup is the following:
Git project
Remotes:
origin
(my git fork)upstream
(project repo)
Submodule "module", has remotes:
origin
(my git fork)upstream
(project repo)
Does anyone know what is causing my problem?