We are using Gerrit 2.11.9 hosted on a SuSE Linux 11 box. Recently a git repository was created on this box which was an import of a git repo from another source. On trying to clone this repo, I see the following
$ git clone ssh://myGitServer/a/works/boxschedule
Cloning into 'boxschedule'...
Checking connectivity... done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.
The cloned repo is absolutely empty. A git branch -a, git log etc. have nothing to show
At the server side, when I "cd" to the path of the repo, git log does show me lots of commits made on the master branch. git branch -a manages to show me 12 branches in the repo.
$ /a/works/boxschedule.git > cat HEAD
ref: refs/heads/master
$ /a/works/boxschedule.git > du -sh .
4.8M
I am unable to determine why I have a nonexistent ref. Googling for similar errors led me to several articles, but in all of them at least the object count was successful during the clone. I am at my wit's end. Does anyone know why I face this error?