I am trying to add an existing repo to gerrit. I create an empty project and tried to push it ( git push ssh://admin@localhost:29418/project *:* ). I get this error message:
Counting objects: 14, done. Delta compression using up to 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 384 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 3 (delta 1) remote: Resolving deltas: 100% (1/1) remote: Processing changes: refs: 3, done To ssh://admin@localhost:29418/project ! [remote rejected] origin/HEAD -> origin/HEAD (prohibited by Gerrit) ! [remote rejected] origin/master -> origin/master (prohibited by Gerrit) ! [remote rejected] origin/ref/for/master/testing -> origin/ref/for/master/testing (prohibited by Gerrit) error: failed to push some refs to 'ssh://admin@localhost:29418/project'
I already went to the gerrit website and added refs/head/* to project/access refs/head/* Create link privileges for all users.
git github ssh gerrit
Vis
source share