# HG changeset patch # User Daniel Dourvaris # Date 2016-09-27 13:34:57 # Node ID 0cb8cb706e6160b3b68f80e3b939f697a38fc8f1 # Parent 1a2aabd01d408bf1e6055afb141c8c96a47b4419 tags: use get_peeled to get the peeled tag sha commit instead of _peeled_refs which doesn't include them all the time. diff --git a/vcsserver/git.py b/vcsserver/git.py --- a/vcsserver/git.py +++ b/vcsserver/git.py @@ -431,11 +431,9 @@ class GitRemote(object): @reraise_safe_exceptions def get_refs(self, wire): repo = self._factory.repo(wire) - - repo.refs._peeled_refs result = {} for ref, sha in repo.refs.as_dict().items(): - peeled_sha = repo.refs._peeled_refs.get(ref, sha) + peeled_sha = repo.get_peeled(ref) result[ref] = peeled_sha return result