gerrit - Cannot push tags in Git -


i unable push annotated tag in git remote repository. access permission have been provided in gerrit. eg. [refs/*]

i creating tag using below command

git tag -a v1.0 -m 'base version' 712d77e 

when try push using below commands

git push origin v1.0  

or

git push origin --tags 

i following error.

counting objects: 1, done. writing objects: 100% (1/1), 157 bytes, done. total 1 (delta 0), reused 0 (delta 0) remote: processing changes: refs: 1, done ssh://... ! [remote rejected] v1.0 -> v1.0 (prohibited gerrit) error: failed push refs 'ssh://...' 

please let me know how should able push tags in repository.

thanks....

this general error message returned gerrit if push not allowed, e.g. because pushing user has no sufficient privileges.

in particular error occurs:

  1. if push commit code review branch don’t have upload permissions (access right push on refs/for/refs/heads/*)

  2. if bypass code review without push access right on refs/heads/*

  3. if push annotated tag without push annotated tag access right on refs/tags/*

  4. if push signed tag without push signed tag access right on refs/tags/*

  5. if push lightweight tag without access right create reference reference name refs/tags/*

  6. if push tag else tagger , don’t have forge committer access right reference name refs/tags/*

  7. if push project in state read only

for new users happens accidentally try bypass code review. push fails error message prohibited gerrit because project didn’t allow bypass code review. bypassing code review done pushing directly refs/heads/* (e.g. refs/heads/master) instead of pushing refs/for/* (e.g. refs/for/master).

copied prohibited gerrit

more description: have same problem new installation of gerrit 2.7, searched , found stackoverflow question, case number 5 of description(light weight tags), added create reference permission refs/tags/*, , problem solved.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -