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

Kai Köhne Kai.Koehne at qt.io
Tue Aug 22 08:43:11 CEST 2023


> The question you must answer is why git
> submodule update isn't checking those
> commits out for those submodules.
>
> Anyway, why are you checking out 6.2.4 using Git?

That's the key: qtlocation and qtspeech weren't  part of 6.2 qt5.git. So when switching from dev to 6.2.4, 'git checkout' leaves the submodules alone.

Haowei, you seem to have found the solution yourself previously: git clean -xfdf. Or just clone Qt 6.2.4 (and other branches/tags) in a separate git checkout directory.

But why do you want to build the documentation for Qt 6.2.4 yourself, in the first place? All the commits need to go into dev anyhow ...

Kai


More information about the Development mailing list