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:
if push commit code review branch don’t have upload permissions (access right push on
refs/for/refs/heads/*
)if bypass code review without push access right on
refs/heads/*
if push annotated tag without push annotated tag access right on
refs/tags/*
if push signed tag without push signed tag access right on
refs/tags/*
if push lightweight tag without access right create reference reference name
refs/tags/*
if push tag else tagger , don’t have forge committer access right reference name
refs/tags/*
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
Post a Comment