Hi all,

I execute next commands to create and submit code into code review:
git clone git://git.code.sf.net/p/openocd/code openocd
git remote add review http://[email protected]/p/openocd.git
git config remote.review.push HEAD:refs/publish/master
scp -p -P 29418 [email protected]:hooks/commit-msg 
.git/hooks/<mailto:[email protected]:hooks/commit-msg%20.git/hooks/>
          <-- In this step I used private SSH key. This operation complete 
correct.
git config --global user.name "psocprogrammer"
git config --global user.email "[email protected]"

#make changes and submit
git add "path to file".
git commit -s -a -m "Massages"
tools/checkpatch.sh
git pull --rebase origin master
git commit --amend
git pull
Methods to push code on review. This methods not work for me:
1)      git push review
        2)    git push http://psocprogrammer:PASSWORD FROM Gerrit 
[email protected]/openocd review

When I execute method 1 I received:
“$ git push review
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.”
NOTE: But key which used git is 100% a private and used in “scp -p -P 29418 
[email protected]:hooks/commit-msg 
.git/hooks/<mailto:[email protected]:hooks/commit-msg%20.git/hooks/>”
 command.

I try to execute "git remote -v"  command and saw next output:
“origin  https://git.code.sf.net/p/openocd/code (fetch)
origin  https://git.code.sf.net/p/openocd/ (push)
review ssh://[email protected]:29418/openocd.git (fetch)
review  ssh://[email protected]:29418/openocd.git (push)”

When I execute method 2 I received:
git push http://psocprogrammer:[email protected]/openocd 
review
error: src refspec review does not match any.
error: failed to push some refs to 'http://psocprogrammer: XXXXXXXXXXXXXXXXXX 
@openocd.zylin.com/openocd'

Could you help me? I need to submit code in review.

Thank you for your help.

Best regards,
Mykhaylo Lyubun

This message and any attachments may contain Cypress (or its subsidiaries) 
confidential information. If it has been received in error, please advise the 
sender and immediately delete this message.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to