Importing already existing git repo with multiple branches and tags into gerrit

夙愿已清 提交于 2019-12-04 14:33:25

The minimal set of permissions to allow for refs/* in order to import an existing repository to Gerrit was for us:

  • Create Reference (quite obviously)
  • Forge Author Identity and Forge Committer Identity (because you are pushing other people's commits)
  • Push (quite obviously)
  • Push Merge Commit (this is not included in Push, and you'll likely have merge commits)
  • Push Annotated Tag (we use annotations in some tags)

You also need to allow Push Signed Tag if you have signed tags, obviously.

Finally, if you plan to run the import more than once to incrementally sync repositories during some transition period, you also need to allow Read and enable Force Push for all Push permissions.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!