无法向Gerrit提交代码(review.cyanogenmod.org)

时间:2014-01-03 18:15:25

标签: android git gerrit repository cyanogenmod

我做了一些更改,想要提交代码。我收到这个错误:

repo upload bootable/recovery
Upload project bootable/recovery/ to remote branch refs/heads/cm-11.0:
  branch cm-11.0 ( 1 commit, Fri Jan 3 21:42:34 2014 +0400):
         *************************
to review.cyanogenmod.org (y/N)? y
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

----------------------------------------------------------------------
[FAILED] bootable/recovery/ cm-11.0         (Upload failed)

注意:我已经添加了ssh-rsa密钥,我在pc上的用户名与review.cyanogenmod.org上的用户名相同。我关注CyanogenMod’s instructions

1 个答案:

答案 0 :(得分:0)

将以下行添加到~/.gitconfig

[review.review.cyanogenmod.org]
    username = <your gerrit username here>