Can't spawn "git": No error at init-repository line 207.
-
wrote on 25 Aug 2023, 09:58 last edited by
When using the "perl init-repository -f" command to fetch submodules, the "Can't spawn "git": No error at init-repository line 207" issue often occurs. But the issue isn't stable.
Below is the error message:
Can't spawn "git": No error at init-repository line 207.
git fetch origin exited with status 65280 at init-repository line 207.
Qt::InitRepository::exe(Qt::InitRepository=HASH(0x134c7a0), "git", "fetch", "origin") called at init-repository line 577
Qt::InitRepository::git_clone_one_submodule(Qt::InitRepository=HASH(0x134c7a0), "qtquick3d", "qtquick3d.git", 0, "") called at init-repository line 430
Qt::InitRepository::git_clone_all_submodules(Qt::InitRepository=HASH(0x134c7a0), "qt5", 0, "", "preview", "essential", "addon", "deprecated") called at init-repository line 674
Qt::InitRepository::run(Qt::InitRepository=HASH(0x134c7a0)) called at init-repository line 685 -
Hi and welcome to devnet,
Are you sure your git version is working properly ?
-
Can you describe the exact steps you did before getting this error ?
Also, did you try from a fresh clone of the Qt repository ?
-
Can you describe the exact steps you did before getting this error ?
Also, did you try from a fresh clone of the Qt repository ?
wrote on 31 Aug 2023, 06:06 last edited by Eva An@SGaist I cloned the code with "3a8e80c" commit, but the error still appears. Below are the steps:
- git clone -b 6.5 https://github.com/qt/qt5 F:\gitP\qt\qt6
- git -C "F:\gitP\qt\qt6" rev-parse --git-dir
- git -C "F:\gitP\qt\qt6" clean -xdf
- git -C "F:\gitP\qt\qt6" fetch --recurse-submodules=no --force
- git -C "F:\gitP\qt\qt6" reset --hard 3a8e80c
- git -C "F:\gitP\qt\qt6" remote prune origin
- git -C "F:\gitP\qt\qt6" submodule foreach git reset --hard
- git -C "F:\gitP\qt\qt6" submodule foreach git clean -xdf
- Open VS2022 x64 Native Tools command
- cd F:\gitP\qt\qt6
- perl init-repository -f (The issue appears in this step)
Error message:
From git://code.qt.io/qt/qtcharts
4a596b4e..f99b3c90 6.5 -> origin/6.5
19263e3a..bf99510f 6.6 -> origin/6.6
7ec43b92..8bea01f1 dev -> origin/dev
Can't spawn "git": No error at init-repository line 207.
git fetch origin exited with status 65280 at init-repository line 207.
Qt::InitRepository::exe(Qt::InitRepository=HASH(0x134bcc0), "git", "fetch", "origin") called at init-repository line 577
Qt::InitRepository::git_clone_one_submodule(Qt::InitRepository=HASH(0x134bcc0), "qtcharts", "qtcharts.git", 0, "") called at init-repository line 430
Qt::InitRepository::git_clone_all_submodules(Qt::InitRepository=HASH(0x134bcc0), "qt5", 0, "", "preview", "essential", "addon", "deprecated") called at init-repository line 674
Qt::InitRepository::run(Qt::InitRepository=HASH(0x134bcc0)) called at init-repository line 685 -
@SGaist I cloned the code with "3a8e80c" commit, but the error still appears. Below are the steps:
- git clone -b 6.5 https://github.com/qt/qt5 F:\gitP\qt\qt6
- git -C "F:\gitP\qt\qt6" rev-parse --git-dir
- git -C "F:\gitP\qt\qt6" clean -xdf
- git -C "F:\gitP\qt\qt6" fetch --recurse-submodules=no --force
- git -C "F:\gitP\qt\qt6" reset --hard 3a8e80c
- git -C "F:\gitP\qt\qt6" remote prune origin
- git -C "F:\gitP\qt\qt6" submodule foreach git reset --hard
- git -C "F:\gitP\qt\qt6" submodule foreach git clean -xdf
- Open VS2022 x64 Native Tools command
- cd F:\gitP\qt\qt6
- perl init-repository -f (The issue appears in this step)
Error message:
From git://code.qt.io/qt/qtcharts
4a596b4e..f99b3c90 6.5 -> origin/6.5
19263e3a..bf99510f 6.6 -> origin/6.6
7ec43b92..8bea01f1 dev -> origin/dev
Can't spawn "git": No error at init-repository line 207.
git fetch origin exited with status 65280 at init-repository line 207.
Qt::InitRepository::exe(Qt::InitRepository=HASH(0x134bcc0), "git", "fetch", "origin") called at init-repository line 577
Qt::InitRepository::git_clone_one_submodule(Qt::InitRepository=HASH(0x134bcc0), "qtcharts", "qtcharts.git", 0, "") called at init-repository line 430
Qt::InitRepository::git_clone_all_submodules(Qt::InitRepository=HASH(0x134bcc0), "qt5", 0, "", "preview", "essential", "addon", "deprecated") called at init-repository line 674
Qt::InitRepository::run(Qt::InitRepository=HASH(0x134bcc0)) called at init-repository line 685Why not do just steps 1, 10 and 11 ?
-
wrote on 1 Sept 2023, 05:58 last edited byThis post is deleted!
-
wrote on 1 Sept 2023, 09:24 last edited by
@SGaist Instead of getting the latest commit every day, we'll be updating our qt6 commits every so often. But we need to clone the code every day, so we need to make sure that git is clean every time and needs to be reset to the appropriate commit.
-
@SGaist Instead of getting the latest commit every day, we'll be updating our qt6 commits every so often. But we need to clone the code every day, so we need to make sure that git is clean every time and needs to be reset to the appropriate commit.
Then I fail to see why you are calling again init-repository each time rather than just pull all repos and then switch to the appropriate commit.
1/9