Important: Please read the Qt Code of Conduct -

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": and I am stuck at the point where it recommends the line:
    git push ssh://<username> HEAD:refs/for/master

    When I try that I get the following back:
    @git push ssh:// 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://
    ! [remote rejected] HEAD -> refs/for/master (branch master not found)
    error: failed to push some refs to 'ssh://'@

    Any help would be appreciated.

  • Moderators


    It looks like the tutorial is outdated. The "master" branch was removed at the start of Qt 5. Here is the new branching scheme:

    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