Create android source branch (创建安装源码分支)

Create Android Source Code Branch

  1. 使用Gerrit管理Android Source Code:
  2. 创建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
  3. 遇到的问题:

    • 没有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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值