Skip to content

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:

Screen Shot 2019-08-19 at 13 34 07

That is not in the original file. You can see that the version cloned from ghe.sgdev.org does not contain it:

https://k8s.sgdev.org/ghe.sgdev.org/sourcegraph/facebook-react@827cbc4d00b668af6bbcca98f1730d4c8a546845/-/blob/packages/react-art/Wedge.js

And on umami.sgdev.org, which also has Gitolite configured (but a slightly different callsignCommand), it doesn't show up either:

https://umami.sgdev.org/gitolite.sgdev.org/13k/facebook/react@9c6de716d028f17736d0892d8a3d8f3ac2cb62bd/-/blob/packages/react-art/Wedge.js?diff=9c6de716d028f17736d0892d8a3d8f3ac2cb62bd