File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ def _set_reference(self, ref):
210210 except AttributeError :
211211 sha = str (ref )
212212 try :
213- obj = Object .new (self .repo , sha )
213+ obj = Object .new_from_sha (self .repo , hex_to_bin ( sha ) )
214214 if obj .type != "commit" :
215215 raise TypeError ("Invalid object type behind sha: %s" % sha )
216216 write_value = obj .hexsha
@@ -536,7 +536,7 @@ def _get_object(self):
536536 always point to the actual object as it gets re-created on each query"""
537537 # have to be dynamic here as we may be a tag which can point to anything
538538 # Our path will be resolved to the hexsha which will be used accordingly
539- return Object .new (self .repo , self .path )
539+ return Object .new_from_sha (self .repo , hex_to_bin ( self .dereference_recursive ( self . repo , self . path )) )
540540
541541 def _set_object (self , ref ):
542542 """
You can’t perform that action at this time.
0 commit comments