提交由gerrit拒绝的裁判/草稿。但是能够上传“变化”

时间:2013-06-28 14:19:27

标签: git gerrit

我正在尝试将变更草稿提交给我们的gerrit。但它失败并出现以下错误。 但是,我能够成功提交“修改”(补丁集)。

            <~/build> git push origin HEAD:refs/drafts/remote-branch
            Counting objects: 16, done.
            Delta compression using up to 8 threads.
            Compressing objects: 100% (13/13), done.
            Writing objects: 100% (13/13), 5.98 KiB, done.
            Total 13 (delta 3), reused 0 (delta 0)
            remote: Resolving deltas:   0% (0/3)
            To ssh://<my-repo>
            ! [remote rejected] HEAD -> refs/drafts/remote-branch (prohibited by Gerrit)
            error: failed to push some refs to 'ssh://<my-repo>'

            <~/build> git push origin HEAD:refs/for/remote-branch
            Counting objects: 16, done.
            Delta compression using up to 8 threads.
            Compressing objects: 100% (13/13), done.
            Writing objects: 100% (13/13), 5.98 KiB, done.
            Total 13 (delta 3), reused 0 (delta 0)
            remote: Resolving deltas:   0% (0/3)
            To ssh://<my-repo>
            * [new branch]      HEAD -> refs/for/remote-branch
            <~/build> 

我们是否需要配置任何选项以在Gerrit中启用“草稿”或配置一些用户权限?

0 个答案:

没有答案