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
• 18,520 points
1,976 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
• 52,350 points

Related Questions In Git & GitHub

0 votes
1 answer

fatal: Not a git repository (or any of the parent directories): .git

Hi@akhtar, I think you didn't initialize your folder ...READ MORE

answered Apr 29, 2020 in Git & GitHub by MD
• 95,460 points
8,919 views
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, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,619 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 14, 2018 in Git & GitHub by Sophie may
• 10,620 points
1,244 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 views
+2 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
19,891 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP