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:// 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:// (fetch)
origin  ssh:// (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,560 points

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 server.

try executing the following command In the same command sequence

ssh -Tv -p 2941 

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,220 points
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,070 points
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
• 10,550 points
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+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