Skip to content
Snippets Groups Projects
Commit 062dd311 authored by Tay Ray Chuan's avatar Tay Ray Chuan
Browse files

update references to Tag.get_object()

dulwich recently renamed [1] the Tag.get_object() method to
_get_object(). Update our usage correspondingly.

[1] git reference: f85ce56 (Support determining blob id without joining
all chunks first.)
parent 7dfe8be2
No related branches found
No related tags found
No related merge requests found
......@@ -363,7 +363,7 @@
if sha in self.git.object_store:
obj = self.git.get_object(sha)
while isinstance(obj, Tag):
obj_type, sha = obj.get_object()
obj_type, sha = obj._get_object()
obj = self.git.get_object(sha)
if isinstance (obj, Commit) and sha not in seenheads:
seenheads.add(sha)
......@@ -666,7 +666,7 @@
sha = self.map_hg_get(refs[k])
self.tags[ref_name] = sha
elif isinstance (obj, Tag): # annotated
(obj_type, obj_sha) = obj.get_object()
(obj_type, obj_sha) = obj._get_object()
obj = self.git.get_object(obj_sha)
if isinstance (obj, Commit):
sha = self.map_hg_get(obj_sha)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment