submit the commit to girrit system

7 篇文章 0 订阅
3 篇文章 0 订阅

# Gerrit review system
1. If you don't have gerrit account, please visit http://achenserver:8080/ and register your own account by Register link (upper right corner). 
   It supports Yahoo Open ID. If you don't have please register one on http://openid.yahoo.com/
2. After logon gerrit, add your ssh public key into Settings->SSH Public Keys
3. Then you are ready to push your commit. Go to your project folder and make sure your modification is committed locally.
4. For example, I have a commit under frameworks/av and what to be reviewed. You should know the project name firstly.

achen@TpeSwBuildMachine:~/Project/Z580/frameworks/av$ git config --list | grep url
remote.aosp.url=git://tpeswbuildmachine.pixelworks.com/aosp/platform/frameworks/av

The format of this git project name is git://[hostname]/[project name]
[hostname] = tpeswbuildmachine.pixelworks.com
[project name] = aosp/platform/frameworks/av

The command to push your commit will be
git push ssh://hdzhu@achenserver.pixelworks.com:29418/[project name] HEAD:refs/for/[branch name]
git push ssh://hdzhu@achenserver.pixelworks.com:29418/aosp/platform/packages/apps/Settings HEAD:refs/for/qcom_8x94_04510
git push ssh://hdzhu@achenserver.pixelworks.com:29418/pxlw/vendor/pixelworks/IrisService HEAD:refs/for/qcom_8x94_04510

git push ssh://chlin@achenserver.pixelworks.com:29418/aosp/platform/frameworks/av HEAD:refs/for/qcom_8x94_04510    <--- check the project name and refs head with command: git config --list
Then, you will see your commit is pushed to gerrit review system (http://achenserver:8080/

Be noted, gerrit system uses commit-message hook to formalize its commit content, please call following command before you commit

gitdir=$(git rev-parse --git-dir); sudo scp -p -P 29418 hdzhu@achenserver:hooks/commit-msg ${gitdir}/hooks/

If your commit is already created, please call
git commit --amend 

to format the git message again.

So the all command as following.

gitdir=$(git rev-parse --git-dir); scp -p -P 29418 hdzhu@achenserver:hooks/commit-msg ${gitdir}/hooks/
git add .
git commit -m ""
git commit --amend
git config --list | grep url
git push ssh://hdzhu@achenserver.pixelworks.com:29418/pxlw/vendor/pixelworks/IrisService HEAD:refs/for/qcom_8x94_04510_iris2_40p
git push ssh://hdzhu@achenserver.pixelworks.com:29418/aosp/platform/packages/apps/Settings HEAD:refs/for/qcom_8x94_04510_iris2_40p
git push ssh://hdzhu@achenserver.pixelworks.com:29418/aosp/platform/frameworks/native HEAD:refs/for/qcom_8x94_04510_iris2_40p
git push ssh://hdzhu@achenserver.pixelworks.com:29418/codeaurora/platform/vendor/qcom/plutonium HEAD:refs/for/qcom_8x94_04510_iris2_40p

git push ssh://hdzhu@achenserver.pixelworks.com:29418/codeaurora/kernel/msm-3.10 HEAD:refs/for/qcom_8x94_04510_iris2_40p

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值