Importing already existing git repo with multiple branches and tags into gerrit
Posted
by
Daniel
on Stack Overflow
See other posts from Stack Overflow
or by Daniel
Published on 2013-10-22T09:50:59Z
Indexed on
2013/10/22
9:53 UTC
Read the original article
Hit count: 418
I'm trying to import an already existing git repository with multiple branches and tags into gerrit. I'm following the official guide at https://gerrit-review.googlesource.com/Documentation/install-quick.html#_already_existing_project.
However, when issuing the push command all the branches and tags, except "master" which I'm currently in, are "prohibited by Gerrit". The output is something like this:
user@host:~/my-project$ git push ssh://user@localhost:29418/demo-project *:*
[....]
* [new branch] master -> master
! [remote rejected] origin/Branch1 -> origin/Branch1 (prohibited by Gerrit)
! [remote rejected] origin/Branch2 -> origin/Branch2 (prohibited by Gerrit)
[....]
! [remote rejected] Tag1 -> Tag1 (prohibited by Gerrit)
! [remote rejected] Tag2 -> Tag2 (prohibited by Gerrit)
[....]
I'm administrator so it shouldn't be an access rights issue.
© Stack Overflow or respective owner