Unable to push changes to Gerrit



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


  • Moderators

    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.



  • Hi,

    not a problem, thanks for helping me resolve it.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.