CI环境搭建----搭建repo服务器中遇到的问题1:fatal: branch 'stable' has not been signed

来源:互联网 发布:java简历项目收获 编辑:程序博客网 时间:2024/06/07 09:02

准备在gerrit服务器上搭建一个自己的repo,多么美好的愿望啊啊啊!

gerrit服务器上创建一个repo.git工程,将从别处拷贝来的repo工具文件全部push到创建的repo.git中,创建stable分支。

repo client端,下载repo工具stable分支,将其中的repo可执行文件拷贝到~/bin/目录下。

新建一个文件夹,执行repo init -u ssh://......29418:/manifest.git

然鹅,问题来啦,提示

fatal: branch 'stable' has not been signed

1. 猜测是gerrit上新建的repo.git上缺少tag,然后用git tag命令来打上tag。

执行repo init ,问题依然存在,看来不是啊

2. 删除gerrit服务器上的repo.git,从别处拷贝repo裸仓库到gerrit服务器上:

git clone --bare ssh://......29418:/repo.git

问题解决!

网络上提供的curl wget等命令下载repo的方法都行不通,或许可以借鉴这个方法使用git clone --bare 命令


阅读全文
0 0
原创粉丝点击