Chinaunix首页 | 论坛 | 博客
  • 博客访问: 409800
  • 博文数量: 33
  • 博客积分: 3050
  • 博客等级: 中校
  • 技术积分: 551
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-22 08:57
文章分类

全部博文(33)

文章存档

2011年(4)

2010年(3)

2009年(5)

2008年(21)

我的朋友

分类: LINUX

2011-04-24 14:30:37

按照
一步步做,发现还是有错误:

repo --trace upload hardware/alsa_sound/
: unpickle /work/android/android_google/.repo/manifests.git/config
: unpickle /home/leibian/.gitconfig
: load refs /work/android/android_google/.repo/projects/hardware/alsa_sound.git
: unpickle /work/android/android_google/.repo/projects/hardware/alsa_sound.git/config
: export GIT_DIR=/work/android/android_google/.repo/projects/hardware/alsa_sound.git
: git rev-list --abbrev=8 --abbrev-commit --pretty=oneline --reverse --date-order ^refs/remotes/korg/master refs/heads/master -- 1>| 2>|
: git log --pretty=format:%cd -n 1 refs/heads/master -- 1>| 2>|
Upload project hardware/alsa_sound/:
  branch master ( 1 commit, Sun Apr 24 00:41:14 2011 +0800):
         ce372dca Fix a bug of AudioHardwareALSA::setVoiceVolume which only set volume of earpiece.
to review.source.android.com (y/n)? y

: cd /work/android/android_google/hardware/alsa_sound
: git update-index -q --unmerged --ignore-missing --refresh 1>| 2>|
: git diff-index -z --cached HEAD 1>| 2>|
: git diff-files -z 1>| 2>|
: git ls-files -z --others --exclude-standard 1>| 2>|
: git var GIT_COMMITTER_IDENT 1>| 2>|
: git push --receive-pack=gerrit receive-pack ssh://mykofzone@review.source.android.com:29418/platform/hardware/alsa_sound refs/heads/master:refs/for/master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

--------------------------------------------
[FAILED] hardware/alsa_sound/ master           (Upload failed)

其原因是ssh账号它默认使用的是email账号的id部分,而如果username和email的id部分不同的话就不对了

查看了repo help upload得到了答案:

review.URL.username:

Override the username used to connect to Gerrit Code Review. By default
the local part of the email address is used.

所以执行:

git config --global review.review.source.android.com.username MYNAME

后就OK了.

 

A mail thread about review.URL.username

http://osdir.com/ml/repo-discuss/2010-11/msg00074.html

 
阅读(6394) | 评论(0) | 转发(1) |
0

上一篇:M901漏电解决

下一篇:TI DM AM 含义

给主人留下些什么吧!~~