# HG changeset patch # User Daniel Dourvaris # Date 2016-09-27 13:34:57 # Node ID 65aca5f228420c7f0ffc5f11279cf1a96536ba60 # Parent d41f5de44b886c6ed7ab572953c4c20733237149 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