CI环境搭建----搭建repo服务器中遇到的问题1:fatal: branch 'stable' has not been signed
2017-05-24 14:37
651 查看
准备在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 命令
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 命令
相关文章推荐
- CI环境搭建----搭建repo服务器中遇到的问题2: info: A new version of repo is available warning: project 'repo' branch
- fatal: branch 'master' has not been signed
- 搭建PHP环境需要安装Apache服务器,遇到的一系列的问题(切记需要用管理权限进入CMD)
- CI环境搭建----repo服务器搭建流程
- 在Windows2003环境下用Serv-U搭建FTP服务器所遇到的一个问题
- code:block运行遇到It seems that this project has not been built yet.问题解决
- ios下打开相机遇到的闪退问题 (Snapshotting a view that has not been rendered results in an empty snapshot.)
- 搭建nginx+php环境时遇到”file not found"的问题
- Kafka:ZK+Kafka+Spark Streaming集群环境搭建(二十三)Structured Streaming遇到问题:Set(TopicName-0) are gone. Some data may have been missed
- 使用eclipse测试osgi遇到的问题--“Workbench has not been created yet”
- VM 安装Linux虚拟服务器:环境搭建遇到:《Linux “ifconfig”看不到inet address》问题--解决土方法
- 搭建Android环境的时候遇到 'could not find adb.exe!'的问题
- 搭建nginx+php环境时遇到”file not found"的问题
- ios下打开相机遇到的闪退问题 (Snapshotting a view that has not been rendered results in an empty snapshot.)
- QC测试数据库环境搭建和恢复注意事项及可能遇到的问题解答
- Mysql新手遇到的首要问题(使用xampp集成搭建环境)
- ActivityManager: Warning: Activity not started, its current task has been brought to the front 的的问题
- CUnit开发环境搭建过程可能遇到的一些问题及解决方法
- Android环境搭建及遇到的小问题
- 3Com office connect+Server_U 搭建Ftp 服务器遇到的问题