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 445 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 25 Aug 2023, 09:58 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Aug 2023, 21:10 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 29 Aug 2023, 06:21
      0
      • S SGaist
        25 Aug 2023, 21:10

        Hi and welcome to devnet,

        Are you sure your git version is working properly ?

        E Offline
        E Offline
        Eva An
        wrote on 29 Aug 2023, 06:21 last edited by
        #3

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

        S 1 Reply Last reply 29 Aug 2023, 19:47
        0
        • E Eva An
          29 Aug 2023, 06:21

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

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 29 Aug 2023, 19:47 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 31 Aug 2023, 06:06
          0
          • S SGaist
            29 Aug 2023, 19:47

            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 31 Aug 2023, 06:06 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

            S 1 Reply Last reply 31 Aug 2023, 18:42
            0
            • E Eva An
              31 Aug 2023, 06:06

              @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

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 31 Aug 2023, 18:42 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 1 Sept 2023, 05:58
              0
              • S SGaist
                31 Aug 2023, 18:42

                Why not do just steps 1, 10 and 11 ?

                E Offline
                E Offline
                Eva An
                wrote on 1 Sept 2023, 05:58 last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • S SGaist
                  31 Aug 2023, 18:42

                  Why not do just steps 1, 10 and 11 ?

                  E Offline
                  E Offline
                  Eva An
                  wrote on 1 Sept 2023, 09:24 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.

                  S 1 Reply Last reply 1 Sept 2023, 18:00
                  0
                  • E Eva An
                    1 Sept 2023, 09:24

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

                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 1 Sept 2023, 18:00 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

                    1/9

                    25 Aug 2023, 09:58

                    • Login

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