Error while using git review: Permission denied (publickey)
Hi,
I'm attempting to send code for review using 'git review', but I'm facing the following error.
root@envy:/home/sagar/gitstuff/horizon# git review
Problem running 'git remote update gerrit'
Fetching gerrit
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch gerrit
Traceback (most recent call last):
File "/usr/local/bin/git-review", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/git_review/cmd.py", line 1202, in main
set_hooks_commit_msg(remote, hook_file)
File "/usr/local/lib/python2.7/dist-packages/git_review/cmd.py", line 283, in set_hooks_commit_msg
run_command_exc(CannotInstallHook, *cmd)
File "/usr/local/lib/python2.7/dist-packages/git_review/cmd.py", line 152, in run_command_exc
raise klazz(rc, output, argv, env)
git_review.cmd.CannotInstallHook: Problems encountered installing commit-msg hook
The following command failed with exit code 1
"scp -P29418 sagardmni@review.openstack.org:hooks/commit-msg .git/hooks/commit-msg"
-----------------------
Permission denied (publickey).
Any ideas as to what the reason could be?