vijay@server:~/test_clone$ git clone ssh://I...@gerrit.server/test-project
Cloning into 'test-project'...
warning: remote HEAD refers to nonexistent ref, unable to checkout.
------------------------------------------------------------------------------------------------------------------------------
My project HEAD is pointing to the master branch which does not exist.
As I am trying to fix the git clone issue here, I am not supposed to change the project configuration due to some restrictions in the company. (Which is creating a master branch in the project)
Does anyone face this kind of issue?
Is there any fix for the git clone error fatal: remote transport reported error?
Thanks,
Prabhu
Thanks,
Prabhu
I have tried with Git 2.34 and above. It fails with the same here and Git Trace did not help much either.
I would like to provide more details on the project here.==> My project has a branch/namespace called refs/meta/config but it does not have a branch master. But the HEAD points to master.Was this a reason for a git clone error fatal: remote transport reported error?
Doug:I am using git version 2.35.1.I was thinking of changing the HEAD point to the existing branch. but it is not recommended in the company.
On Wednesday, February 23, 2022 at 9:05:24 AM UTC-5 prabh...@gmail.com wrote:I have tried with Git 2.34 and above. It fails with the same here and Git Trace did not help much either.There are a bunch of TRACE environment variables to work with to see various aspects of your request, see [1].I would like to provide more details on the project here.==> My project has a branch/namespace called refs/meta/config but it does not have a branch master. But the HEAD points to master.Was this a reason for a git clone error fatal: remote transport reported error?