I have a super project named Root and a submodule named subB on which I have no write permission. now I want to git a new branch in another machine . but when run "git submodule update", get error :
"fatal: reference is not a tree: b4ec396a0e1da795a5187f7acf90f686c23c6940 Unable to checkout 'b4ec396a0e1da795a5187f7acf90f686c23c6940' in submodule path 'subB'". so I tried all kinds of ways to resolve the issue but I failed. who can answer the following questions for me , thanks:
- does the ref 'b4ec396a0e1da795a5187f7acf90f686c23c6940' means local commit in submodule subB? I could see its info only by 'git log b4ec396a0e1da795a5187f7acf90f686c23c6940' in submodule directory 'subB', but in super project I see nothing by the same command.
- the ref means a commit in local sumodule repo? because i have no write permission for the remote repo. so I am sure it only on local. buy why the error occurs when I update in another machine. the remote repo should have no idea about the local commit!
- how to resolve the issue?