After the Gerrit 3.2 upgrade, setting a topic by appending it to the branch name is no longer supported. Trying something like
git push gerrit HEAD:refs/for/master/myawesometopic # Append your topic
now fails and the commit is rejected:
git.exe push --progress "origin" version_doc:refs/for/master/version_doc Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 8 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 581 bytes | 581.00 KiB/s, done. Total 4 (delta 3), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (3/3) remote: Processing changes: refs: 1, done To ssh://gerrit.wikimedia.org:29418/pywikibot/core ! [remote rejected] version_doc -> refs/for/master/version_doc (branch master/version_doc not found) error: failed to push some refs to 'ssh://gerrit.wikimedia.org:29418/pywikibot/core' git did not exit cleanly (exit code 1) (3047 ms @ 29.06.2020 17:40:37)
With Gerri 3.2.2, one has to use the [[https://gerrit.wikimedia.org/r/Documentation/user-upload.html#topic|topic push option]]. This one is available since at least Gerrit 2.6. One can either use branch magic
git push gerrit HEAD:refs/for/master%topic=myawesometopic
or pass them explicitly
git push gerrit HEAD:refs/for/master -o topic=myawesometopic
Further available push options can be found it Gerrit's Documentation.
The Gerrit/Advanced usage page got updated accordingly by @Lucas_Werkmeister_WMDE. Thanks!