Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. "fatal: Needed a single revision" - init-repository not working
QtWS25 Last Chance

"fatal: Needed a single revision" - init-repository not working

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 4.7k Views
  • 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.
  • D Offline
    D Offline
    deleted415
    wrote on 20 Jul 2017, 14:29 last edited by
    #1

    Hi,
    I was trying to clone the qt repository from https://github.com/qt/qt5.
    But I get the following error. I already deleted the directory two times and tried it again. Still the same error.

    I don't if this is relevant but on my first try I switched to the dev branch and then started the init-repository script. That gave me a similar error and I read somewhere that it's important to run the script first. May git cached something somewhere? I'm no good with git so I have no idea. Especially since it's been called from script.

    + git clone --no-checkout https://github.com/qt/qtlocation-mapboxgl.git src/3rdparty/mapbox-gl-native
    Cloning into 'src/3rdparty/mapbox-gl-native'...
    remote: Counting objects: 150328, done.
    remote: Compressing objects: 100% (588/588), done.
    remote: Total 150328 (delta 759), reused 982 (delta 633), pack-reused 149033
    Receiving objects: 100% (150328/150328), 154.35 MiB | 1.33 MiB/s, done.
    Resolving deltas: 100% (103293/103293), done.
    + git config remote.gerrit.url ssh://codereview.qt-project.org/qt/qtlocation-mapboxgl.git
    + git config remote.gerrit.fetch +refs/heads/*:refs/remotes/gerrit/* /heads/
    + git submodule update --force --no-fetch
    fatal: Needed a single revision
    Unable to find current revision in submodule path 'src/3rdparty/mapbox-gl-native'
    git submodule update --force --no-fetch exited with status 256 at ./init-repository line 198.
    	Qt::InitRepository::exe('Qt::InitRepository=HASH(0x7fa1e0803ff0)', 'git', 'submodule', 'update', '--force', '--no-fetch') called at ./init-repository line 429
    	Qt::InitRepository::git_clone_all_submodules('Qt::InitRepository=HASH(0x7fa1e0803ff0)', 'qtlocation.git', 0, 'all') called at ./init-repository line 435
    	Qt::InitRepository::git_clone_all_submodules('Qt::InitRepository=HASH(0x7fa1e0803ff0)', 'qt5', 0, 'preview', 'essential', 'addon', 'deprecated') called at ./init-repository line 644
    	Qt::InitRepository::run('Qt::InitRepository=HASH(0x7fa1e0803ff0)') called at ./init-repository line 655
    

    Thanks for any help!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 20 Jul 2017, 16:59 last edited by
      #2

      Please follow this guide.

      Most notably, clone from official repo. Init-repository may be expecting that.

      git clone git://code.qt.io/qt/qt5.git
      

      (Z(:^

      1 Reply Last reply
      2
      • D Offline
        D Offline
        deleted415
        wrote on 27 Jul 2017, 09:33 last edited by
        #3

        Thanks, that helped.
        I was able to compile qt from source now.

        1 Reply Last reply
        1

        1/3

        20 Jul 2017, 14:29

        • Login

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