Klaus Demo ~jonashaag/klaus / 496c2b6
Fix encoding for ref name on Python 3. Jelmer Vernooń≥ 4 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
141141
142142 def get_tag_and_branch_shas(self):
143143 """Return a list of SHAs of all tags and branches."""
144 tag_shas = self.get_refs_as_dict('refs/tags/').values()
145 branch_shas = self.get_refs_as_dict('refs/heads/').values()
144 tag_shas = self.get_refs_as_dict(b'refs/tags/').values()
145 branch_shas = self.get_refs_as_dict(b'refs/heads/').values()
146146 return set(tag_shas) | set(branch_shas)
147147
148148 def history(self, commit, path=None, max_commits=None, skip=0):