git - How to push Drafts to Gerrit? -


i unable push drafts gerrit. when try push drafts gerrit throwing following error.

[3:37pm] [myrepo] -> git push origin head:refs/drafts/remote counting objects: 167, done.

delta compression using 8 threads.

compressing objects: 100% (80/80), done.

writing objects: 100% (124/124), 58.19 kib, done.

total 124 (delta 75), reused 47 (delta 32)

remote: resolving deltas: 34% (26/75)

to ssh://myrepo ! [remote rejected] head -> refs/drafts/remote(prohibited gerrit)

error: failed push refs 'ssh://myrepo'

can 1 me out in issue?

use command:

git push --receive-pack="git receive-pack" origin {commit sha-1 or head}:refs/drafts/{branch} 

a general rule push gerrit, branch = master:

git push origin <a_local_branch_name or specific_commit or head>:refs/for/master 

a general rule push gerrit draft, branch = master:

git push origin <a_local_branch_name or specific_commit or head>:refs/drafts/master 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -