Handle bad repositories with ref HEAD
Created by: mrnugget
- Sourcegraph version: k8s.sgdev.org
While testing the Gitolite external service I noticed that on k8s.sgdev.org the repo cloned via gitolite contains a warning: refname 'HEAD' is ambiguous. at the end:
That is not in the original file. You can see that the version cloned from ghe.sgdev.org does not contain it:
And on umami.sgdev.org, which also has Gitolite configured (but a slightly different callsignCommand), it doesn't show up either: