chiark / gitweb /
read HEAD ourselves as git-symbolic-ref does not in fact silently exit 1 if not symbolic