File tree 1 file changed +2
-2
lines changed
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):
210
210
except AttributeError :
211
211
sha = str (ref )
212
212
try :
213
- obj = Object .new (self .repo , sha )
213
+ obj = Object .new_from_sha (self .repo , hex_to_bin ( sha ) )
214
214
if obj .type != "commit" :
215
215
raise TypeError ("Invalid object type behind sha: %s" % sha )
216
216
write_value = obj .hexsha
@@ -536,7 +536,7 @@ def _get_object(self):
536
536
always point to the actual object as it gets re-created on each query"""
537
537
# have to be dynamic here as we may be a tag which can point to anything
538
538
# 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 )) )
540
540
541
541
def _set_object (self , ref ):
542
542
"""
You can’t perform that action at this time.
0 commit comments