repo upload to non existing branch

25 views
Skip to first unread message

Abhayadev S

unread,
Jan 15, 2021, 5:20:10 AM1/15/21
to Repo and Gerrit Discussion
Hi,

I am a newbie in to the repo/gerrit world.

Was trying to create some changes and upload for review.

I used "repo start test_branch --all" to start a feature locally and when i tried to upload it was throwing some errors.

then i decided to push the specific project for review as below,
git push gerrit HEAD:refs/for/test_branch

so this was telling that there is no branch in gerrit server !

so now my question is - should we create branches first to be able to push to the ref/for for creating reviews?

also, the error during the repo upload was as below,
Upload project build/ to remote branch refs/heads/master:
  branch test_feat_branch ( 1 commit, Fri Jan 15 15:39:24 2021 +0530):
         86d3dbee adding the build script
to http://192.168.2.14:8080 (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] build/          test_feat_branch (Upload failed)

i have the following in my manifest
<remote fetch="http://192.168.2.14:8080/" name="gerrit" review="http://192.168.2.14:8080" pushurl="ssh://192.168.2.14:29418"/>

should i use an ssh url here?
my ssh keys are working fine when i use git commands on the same gerrit (ssh urls)
Reply all
Reply to author
Forward
0 new messages