Create android source branch (创建安装源码分支)
2016-07-25 19:04
531 查看
Create Android Source Code Branch
使用Gerrit管理Android Source Code:创建AOSP Branch:
export rls_branch_name=”android-xxxxxxxxx”
export base_branch=”android-xxxxxxxxxx”
repo forall -c “git branch $rls_branch_name”
repo forall -c “git checkout $rls_branch_name”
repo forall -c “git push aosp HEAD:refs/heads/$rls_branch_name”
cd .repo/manifests
var_remote_name=$(git remote)
git branch $rls_branch_name
git checkout $rls_branch_name
sed -i ‘s/basebranch/rls_branch_name/g’ default.xml
git commit -a -s -m “${rls_branch_name}: create release branch “
git push varremotenameHEAD:refs/heads/rls_branch_name
遇到的问题:
没有push权限:
在All-Project中修改权限。
个别项目出现无法。
fatal: A Contributor Agreement must be completed before uploading: http://192.168.11.229/#/settings/agreements fatal: Could not read from remote repository.
服务器git仓库执行:git branch -v,
出现: fatal: HEAD not found below refs/heads!
原因是在服务器中的项目下.git/refs/heads/ 下对于的branch不存在。
解决:删除项目, git clone url –mirror
相关文章推荐
- 使用C++实现JNI接口需要注意的事项
- Android IPC进程间通讯机制
- Android Manifest 用法
- [转载]Activity中ConfigChanges属性的用法
- Android之获取手机上的图片和视频缩略图thumbnails
- Android之使用Http协议实现文件上传功能
- Android学习笔记(二九):嵌入浏览器
- android string.xml文件中的整型和string型代替
- i-jetty环境搭配与编译
- android之定时器AlarmManager
- android wifi 无线调试
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- android 代码实现控件之间的间距
- android FragmentPagerAdapter的“标准”配置
- Android"解决"onTouch和onClick的冲突问题
- android:installLocation简析
- android searchView的关闭事件
- SourceProvider.getJniDirectories