全部博文(33)
分类: 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