Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. Unable to push changes to Gerrit
QtWS25 Last Chance

Unable to push changes to Gerrit

Scheduled Pinned Locked Moved Qt Contribution
3 Posts 2 Posters 4.5k 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.
  • R Offline
    R Offline
    radman0x
    wrote on 16 May 2013, 20:21 last edited by
    #1

    Hi,

    Recently I had a problem with Qt and in the process of fixing it realised that a source change was required. I want to commit these changes to the Qt project and I am attempting to follow the code review submission process. I am having a technical issue where git refuses to push my changes to Gerrit.
    I have been following "this tutorial":http://qt-project.org/wiki/Gerrit-Introduction and I am stuck at the point where it recommends the line:
    git push ssh://<username>@codereview.qt-project.org:29418/qt/qtbase HEAD:refs/for/master

    When I try that I get the following back:
    @git push ssh://radman0x@codereview.qt-project.org:29418/qt/qtbase HEAD:refs/for/master
    Counting objects: 13, done.
    Delta compression using up to 6 threads.
    Compressing objects: 100% (7/7), done.
    Writing objects: 100% (7/7), 963 bytes, done.
    Total 7 (delta 6), reused 0 (delta 0)
    remote: Resolving deltas: 0% (0/6)
    To ssh://radman0x@codereview.qt-project.org:29418/qt/qtbase
    ! [remote rejected] HEAD -> refs/for/master (branch master not found)
    error: failed to push some refs to 'ssh://radman0x@codereview.qt-project.org:29418/qt/qtbase'@

    Any help would be appreciated.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JKSH
      Moderators
      wrote on 17 May 2013, 01:11 last edited by
      #2

      Hi,

      It looks like the tutorial is outdated. The "master" branch was removed at the start of Qt 5. Here is the new branching scheme: http://qt-project.org/wiki/Branch-Guidelines

      If it's a small bugfix, use HEAD:refs/for/stable
      It it's a destabilising fix, or a new feature, use HEAD:refs/for/dev

      EDIT: I've also updated that tutorial. Thanks for pointing it out.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • R Offline
        R Offline
        radman0x
        wrote on 21 May 2013, 21:16 last edited by
        #3

        Hi,

        not a problem, thanks for helping me resolve it.

        1 Reply Last reply
        0

        1/3

        16 May 2013, 20:21

        • 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