[Development] How to use `init-repository` properly to clean up the working tree after checking out?

Thiago Macieira thiago.macieira at intel.com
Mon Aug 21 06:12:59 CEST 2023


On Sunday, 20 August 2023 20:45:58 PDT Haowei Hsu wrote:
> Hello, Thiago.
> 
> Strange to say, when checking out to the submodules and run *`git status`*,
> they all say that the *working tree is clean*.

The issue is not that they are dirty, but that those submodules are in the 
wrong commit.

To see the commit they are supposed to be in, in the qt5.git repository, run:
  git ls-tree @

The hash it prints is the commit the submodule is expected to be at and that 
git submodule update will check out.

So the question to you is: why didn't your git submodule command check the 
correct commit out?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230820/17c74a8e/attachment.bin>


More information about the Development mailing list