Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.10, 6.8
-
None
Description
I routinely want my submodules to track their relevant branch, rather than being on the last commit their parent's current version knows it works with (it helps me find incompatibilities before the submodule update 'bot gets tripped up by them).
As a result I run
git clone --branch "$BRANCH" ~/bare/qt/qt5.git "Qt-$BRANCH" && \ (cd "Qt-$BRANCH" && ./init-repository --mirror ~/bare/qt/ \ --module-subset=essential,addon,preview --branch)
to clone a top-level tree for a new BRANCH. (I also have a local mirror.)
However, the above routinely falls over in:
Current branch 6.8 is up to date. Submodule path 'qtwebview': rebased into 'ec1f42313679443d61ff78bd0d996061e80476a2' + git submodule init tests/auto/qml/ecmascripttests/test262 Submodule 'tests/auto/qml/ecmascripttests/test262' (/home/eddy/bare/qt/qtdeclarative-testsuites.git) registered for path 'tests/auto/qml/ecmascripttests/test262' + git ls-remote /home/eddy/bare/qt/qtdeclarative-testsuites.git test/if/mirror/exists + git clone --no-checkout --progress /home/eddy/bare/qt/qtdeclarative-testsuites.git tests/auto/qml/ecmascripttests/test262 Cloning into 'tests/auto/qml/ecmascripttests/test262'... done. + git config remote.mirror.url /home/eddy/bare/qt/qtdeclarative-testsuites.git + git config remote.mirror.fetch +refs/heads/*:refs/remotes/mirror/* + git config remote.origin.url /home/eddy/bare/qt/qtdeclarative-testsuites.git + git config remote.gerrit.url ssh://codereview.qt-project.org/qt/qtdeclarative-testsuites.git + git config remote.gerrit.fetch +refs/heads/*:refs/remotes/gerrit/* /heads/ + git submodule update --force --no-fetch fatal: Unable to find current revision in submodule path 'tests/auto/qml/ecmascripttests/test262' CMake Error at cmake/QtIRProcessHelpers.cmake:173 (message): Failed to update submodule 'qtdeclarative' git submodule update --force --no-fetch exited with status: 128 Call Stack (most recent call first): cmake/QtIRGitHelpers.cmake:436 (qt_ir_execute_process_and_log_and_handle_error) cmake/QtIRGitHelpers.cmake:1119 (qt_ir_handle_update_option) cmake/QtIRGitHelpers.cmake:1134 (qt_ir_handle_init_submodules) cmake/QtIRHelpers.cmake:306 (qt_ir_handle_init_submodules) cmake/QtIRHelpers.cmake:363 (qt_ir_run_after_args_parsed) cmake/QtIRScript.cmake:17 (qt_ir_run_main_script)
Attachments
Issue Links
- relates to
-
QTBUG-113791 init-repository --branch consistently fails on qtdeclaratives's ecmascripttests/test262 submodule
- Open