[Development] How to use `init-repository` properly to clean up the working tree after checking out?
Haowei Hsu
hwhsu1231 at gmail.com
Mon Aug 21 06:41:02 CEST 2023
Hello, Thiago.
The following attachment, *log-git-ls-tree.txt*, is the log that I run *`git
ls-tree @`* command.
Can you discern any clues from this?
BTW, The remote URL I used to git clone qt5 is from GitHub:
- https://github.com/qt/qt5.git
And it seems that the default remote URL that `init-repository` used is
from CodeReview:
- ssh://codereview.qt-project.org/qt/qt5
Is this related to the issue at hand?
---
Haowei Hsu
Thiago Macieira <thiago.macieira at intel.com> 於 2023年8月21日 週一 下午12:14寫道:
> 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
> --
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230821/fd3c3367/attachment.htm>
-------------- next part --------------
D:\Repo\tmp\qt>git ls-tree @
100644 blob 81c72bb7853479b03493c25fa22f5697e50a7e2b .commit-template
100644 blob 11a643c0a7fdc858fefc667d19f70785701cca06 .gitattributes
100644 blob 9b8015da8e1fada0c388ecb73e1a3684534aa89b .gitignore
100644 blob 50087136800c0af0d0015dfca6fa708ed5c1b815 .gitmodules
100644 blob 6828f88dcb0e88b8cd738ad6044ce74d7a9a13c8 .tag
100644 blob ed25c225e6f96060375f9670583d3f0caf390610 CMakeLists.txt
100644 blob 938bb8da9e07e20ebf320ed6f7e703a295fe3d62 LICENSE.FDL
100644 blob b1cb1bec78a34d81471d01a7acd048277e6fd447 LICENSE.GPL3-EXCEPT
100644 blob a42447778c264dd25975612e8f7e8ecf1068d0f3 LICENSE.GPLv2
100644 blob 71c4ad49c37f0fe26f7adbc9e43030c7cf0e32d2 LICENSE.GPLv3
100644 blob dfcab5e29b761b2b88e9622fb7b7e0f0283bf76d LICENSE.LGPLv21
100644 blob 6bf924cd155e442b89960693ca48a8d341c23174 LICENSE.LGPLv3
100644 blob 7487df854f3a34de146d5f49432357465a9a6884 LICENSE.QT-LICENSE-AGREEMENT
100644 blob 201612be49b9fb4c5be95b3337086e6915a3d8cb README.git
100644 blob 205ff1d172eeab056dcd5fa627f772b4436bce81 README.md
100644 blob d4f5ffbff24f41ceadcb008ae7b827676ccbac95 _clang-format
040000 tree 19896c76435697a1782b4ff69fa17176f59e2eaf cmake
040000 tree db74670be12254016973ca748ebc7838797cb2d6 coin
100644 blob afab3997a28c24113fc9be686ba3f9f2e5ac7e2a conanfile_profiles.py
100755 blob ced66676caeec8b117a8629782a9a980a8a4b1d5 configure
100644 blob 500d627fdeaf6bab1ccef7a9c98e3a17c1d7d7d6 configure.bat
100644 blob f437252f093cf4ebf73bab8aef0085855ad65d21 configure.json
100755 blob 60594fc77873273e4e7ac9f1e05954de3373b460 init-repository
160000 commit ba60c55bd21ac774154eadbbb7b1573674668a80 qt3d
160000 commit d2f614a177ed8c1f7237a2c2b2a530d23bebace8 qt5compat
160000 commit a7d9fbfb46c46c95b468ee01f6fc31d7d82adfc3 qtactiveqt
160000 commit d3b5353380797f3b67599ccebc5dc916057681e5 qtbase
160000 commit 1319e0965f6008f44f9216a7bb76e106a1710767 qtcanvas3d
160000 commit bc4474149b50a4249a490cd541dabb77d1285576 qtcharts
160000 commit 66b731d0f2f3ec45d535a98e3859bf78e5ede8ed qtcoap
160000 commit 1b8b3b251407e00423f1a58a5ee86c4d3e9901ec qtconnectivity
160000 commit b0d49a7eed0aa4164168b554519e3fe16d38e7bb qtdatavis3d
160000 commit 26140891b4b77e2e8292f75e9d20f5798a2bd247 qtdeclarative
160000 commit 4bd64592aad85fb02fa6dd7b0e40d9d0b7c959cf qtdoc
160000 commit 9ac8d8c272fc93416016e094fc6b97226a400082 qtfeedback
160000 commit 5fe6fd206f4aef1cb1ee9c328ee27e25e6b44f4a qtgamepad
160000 commit 2dd8048d64de5ca7fcc817f5afdbd5fc368dd1f0 qtimageformats
160000 commit c3b1059d8532640c8586199ff314f964dbe62772 qtlocation
160000 commit 93601e37912efefc93a850e58861ffe8d4d604fa qtlottie
160000 commit 1db8babfef79f91e4a457633cc4e659b093d0e02 qtmqtt
160000 commit 79739672e6a83b4095d0952068354cef9ff3495c qtmultimedia
160000 commit 97e6076031f7bc223e4ea68435e3d3d35ebadbb5 qtnetworkauth
160000 commit 3eeb1db3b3687ad1110cb491b9d7f7d5fbed383d qtopcua
160000 commit 02efef5ee63bf2407526f81fd6b68f5a59ac1de3 qtpim
160000 commit 662461c306a17660fe94a6c3450bb7312423ee9b qtpositioning
160000 commit 9a4e92089d4c23d8b1cde07ec5596f3611b0e362 qtqa
160000 commit ddff44aef63854644809a06d4fadf4f97833ce81 qtquick3d
160000 commit 764291bb8dcded2f4793f6fa48cfd3493d644135 qtquicktimeline
160000 commit 923c6dee3f0af69f848bf3bd4575e7dc8e0dc49e qtremoteobjects
160000 commit 08ca9944715735726d36f7d82123dc299f73335d qtrepotools
160000 commit a3e8bf11424b306e38c8c7b114d2d6c600e0d3b4 qtscxml
160000 commit 45dc7967824262923694d83e36f94b4d6cc273b9 qtsensors
160000 commit 58eb2dad75116ee51bd2939eb92202ec4f02a83a qtserialbus
160000 commit f41e290b17e68764da0bf88ded99f2180d79b83b qtserialport
160000 commit 47011f48f747a8855b0c4e9b7fdadb32ead254da qtshadertools
160000 commit 25c1b5b74cc96ceaefeed6be76cda402f406a238 qtspeech
160000 commit 0237fcf58c8978c35386b2b7d38f306da0f20af2 qtsvg
160000 commit 434af789f0d56ca7a521ca2d9ec8cf3b1057fd37 qtsystems
160000 commit 2a982eb06ff9c35b48c969089e17c05f8248b57c qttools
160000 commit eb6cc76cb8594080fc30abe44a497b62619691be qttranslations
160000 commit d21c005345ea695a90dd980609762cb7e1f2f697 qtvirtualkeyboard
160000 commit b840a91bf5f4068efe3110411c156c17b869142c qtwayland
160000 commit d6c00c7be359fe25846ed3d95f96afa36c4d11b1 qtwebchannel
160000 commit acb01cacff784d51f97e8be16e57f89ebc2722f9 qtwebengine
160000 commit 531fb30d539f09003946ab768873ef87e6117fa6 qtwebglplugin
160000 commit 6dd991743fbd5b997392ac24997f97822df82053 qtwebsockets
160000 commit 4648d5d9ad50171a9f6e8fe8803cc92c12740baf qtwebview
160000 commit 05ab44484453673ee813bcac287fc9052ec9164f qtxmlpatterns
D:\Repo\tmp\qt>git status
On branch 6.2.4
Your branch is up to date with 'origin/6.2.4'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: qtlocation (new commits)
modified: qtspeech (new commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
build/
no changes added to commit (use "git add" and/or "git commit -a")
D:\Repo\tmp\qt>
More information about the Development
mailing list