Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't spawn "git": No error at init-repository line 207.
Forum Updated to NodeBB v4.3 + New Features

Can't spawn "git": No error at init-repository line 207.

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 2 Posters 456 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eva An
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you sure your git version is working properly ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Are you sure your git version is working properly ?

        E Offline
        E Offline
        Eva An
        wrote on last edited by
        #3

        @SGaist Yes, it's working fine. No problem getting other source codes.

        SGaistS 1 Reply Last reply
        0
        • E Eva An

          @SGaist Yes, it's working fine. No problem getting other source codes.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you describe the exact steps you did before getting this error ?

          Also, did you try from a fresh clone of the Qt repository ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          E 1 Reply Last reply
          0
          • SGaistS SGaist

            Can you describe the exact steps you did before getting this error ?

            Also, did you try from a fresh clone of the Qt repository ?

            E Offline
            E Offline
            Eva An
            wrote on last edited by Eva An
            #5

            @SGaist I cloned the code with "3a8e80c" commit, but the error still appears. Below are the steps:

            1. git clone -b 6.5 https://github.com/qt/qt5 F:\gitP\qt\qt6
            2. git -C "F:\gitP\qt\qt6" rev-parse --git-dir
            3. git -C "F:\gitP\qt\qt6" clean -xdf
            4. git -C "F:\gitP\qt\qt6" fetch --recurse-submodules=no --force
            5. git -C "F:\gitP\qt\qt6" reset --hard 3a8e80c
            6. git -C "F:\gitP\qt\qt6" remote prune origin
            7. git -C "F:\gitP\qt\qt6" submodule foreach git reset --hard
            8. git -C "F:\gitP\qt\qt6" submodule foreach git clean -xdf
            9. Open VS2022 x64 Native Tools command
            10. cd F:\gitP\qt\qt6
            11. 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

            SGaistS 1 Reply Last reply
            0
            • E Eva An

              @SGaist I cloned the code with "3a8e80c" commit, but the error still appears. Below are the steps:

              1. git clone -b 6.5 https://github.com/qt/qt5 F:\gitP\qt\qt6
              2. git -C "F:\gitP\qt\qt6" rev-parse --git-dir
              3. git -C "F:\gitP\qt\qt6" clean -xdf
              4. git -C "F:\gitP\qt\qt6" fetch --recurse-submodules=no --force
              5. git -C "F:\gitP\qt\qt6" reset --hard 3a8e80c
              6. git -C "F:\gitP\qt\qt6" remote prune origin
              7. git -C "F:\gitP\qt\qt6" submodule foreach git reset --hard
              8. git -C "F:\gitP\qt\qt6" submodule foreach git clean -xdf
              9. Open VS2022 x64 Native Tools command
              10. cd F:\gitP\qt\qt6
              11. 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

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Why not do just steps 1, 10 and 11 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              E 2 Replies Last reply
              0
              • SGaistS SGaist

                Why not do just steps 1, 10 and 11 ?

                E Offline
                E Offline
                Eva An
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • SGaistS SGaist

                  Why not do just steps 1, 10 and 11 ?

                  E Offline
                  E Offline
                  Eva An
                  wrote on last edited by
                  #8

                  @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.

                  SGaistS 1 Reply Last reply
                  0
                  • E Eva An

                    @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.

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    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.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved