3 ms·
Are you saying submodule SHA was updated in the parent repo, but the new submodule commit which the parent repo is now pointing to was never pushed? I haven't
by tedmiston 4y ago
Are you saying submodule SHA was updated in the parent repo, but the new submodule commit which the parent repo is now pointing to was never pushed?
I haven't experienced that scenario before but it seems like there'd be an obvious git error?
- mdaniel 4y agoNo, the opposite: git clone --recursive some/repo.git cd repo/subrepo sed -i"" s/hello/goodbye/ README.md git commit -am 'lololo' cd .. git commit -am'subrepo with *local* sha reference' git status # everything is clean! now that I know that can happen, running `git submodule foreach git status` will surface the "your branch is ahead of" magic text that indicates what has gone on, but it would be tons better if the system understood what was happening and didn't allow such a bad outcome