gerrit-cherry-pick:fatal: 'origin' does not appear to be a git repository

0 votes

I’m trying to do a gerrit-cherry-pick.

I did a git remote -v and can see the origin is pointing to ssh://waccount@tech-gerrit.sd.company.com:29418/tech-ci.git and I’m getting the following error:

2018-08-09 21:13:15 change-merged   runCmd               169    INFO    : Running command git --git-dir=/gerrit_v2/hooks/tech_projects/tech-ci/.git --work-tree=/gerrit_v2/hooks/tech_projects/tech-ci remote -v
2018-08-09 21:13:15 change-merged   runCmd               173    INFO    :
origin  ssh://waccount@tech-gerrit.sd.company.com:29418/tech-ci.git (fetch)
origin  ssh://waccount@tech-gerrit.sd.company.com:29418/tech-ci.git (push)
 2018-08-09 21:13:15 change-merged   runCmd2              180    INFO    : Running command /gerrit_v2/hooks/gerrit-cherry-pick origin 20633/2
2018-08-09 21:13:15 change-merged   runCmd2              187    INFO    : fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Aug 13, 2018 in Git & GitHub by Hannah
• 14,070 points
216 views

1 answer to this question.

0 votes

The user account making that command does not have its ~/.ssh/id_rsa.pubdefault public SSH key registered in ~waccount/.ssh/authorized_keys on the tech-gerrit.sd.company.com server.

try executing the following command In the same command sequence

ssh -Tv -p 2941 waccount@tech-gerrit.sd.company.com 

That will display more details on the failed connection attempt.

If not possible, try and make sure the environment variable GIT_SSH_COMMAND is set with 'ssh -v'.

answered Aug 13, 2018 by Kalgi
• 40,420 points

Related Questions In Git & GitHub

0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2 in Git & GitHub by Sirajul
• 25,180 points
65 views
0 votes
1 answer
0 votes
1 answer

Is there a way to remove a directory from git repository?

This is simple, just follow the commands ...READ MORE

answered Jul 13, 2018 in Git & GitHub by Sophie may
• 9,530 points
41 views
0 votes
1 answer

What all does a version control like git allow us to do?

Version control basically keeps a track of ...READ MORE

answered Feb 16 in Git & GitHub by Mariam
133 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
145 views
0 votes
1 answer
+1 vote
4 answers

GIT plugin in jenkins not able to connect to GIT repository

This looks like a git configuration issue, ...READ MORE

answered Oct 25, 2018 in Git & GitHub by Alia
1,546 views