I am trying to clone a git repository from the gerrit system, but I encounter an error given below.
$ git clone ssh://gerrit.codereview.com:29418/repo/abc
Cloning into 'abc'...
remote: Counting objects: 109851, done
remote: Finding sources: 100% (23/23)
remote: Total 176120 (delta 0), reused 176113 (delta 0)
Receiving objects: 100% (176120/176120), 7.08 GiB | 30.43 MiB/s, done.
Resolving deltas: 100% (70343/70343), done.
fatal: update_ref failed for ref 'HEAD': cannot update ref 'refs/heads/master': trying to write non-commit object ad3b40d1b582c561edd8a754d029db608f14a98c to branch 'refs/heads/master'
This issue persists across multiple systems. Can you please suggest a solution?
git refloggit reflogdidn't return anything.abcrepository folder available in my local path.git clone ssh://gerrit.codereview.com:29418/repo/abc --branch another-branchand if download will be successful - you can investigate what happens with the master.