Recognize branch or ref specs as the URL fragment.