@@ -61,7 +61,6 @@ class SymbolicReference(object):
61
61
def __init__ (self ,repo :'Repo' ,path :PathLike ,check_path :bool = False )-> None :
62
62
self .repo = repo
63
63
self .path = str (path )
64
- self .ref = self ._get_reference
65
64
66
65
def __str__ (self )-> str :
67
66
return self .path
@@ -283,7 +282,6 @@ def set_object(self, object: Union[Commit_ish, 'SymbolicReference'],
283
282
284
283
commit = cast ('Commit' ,property (_get_commit ,set_commit ,doc = "Query or set commits directly" ))
285
284
object = property (_get_object ,set_object ,doc = "Return the object our ref currently refers to" )# type: ignore
286
- # reference = property(_get_reference, set_reference, doc="Return the object our ref currently refers to")
287
285
288
286
def _get_reference (self
289
287
)-> Union ['Head' ,'RemoteReference' ,'TagReference' ,'Reference' ]:
@@ -365,6 +363,12 @@ def set_reference(self, ref: Union[str, Commit_ish, 'SymbolicReference'], logmsg
365
363
366
364
return self
367
365
366
+ reference :Union ['Head' ,'RemoteReference' ,'TagReference' ,'Reference' ]= property (# type: ignore
367
+ _get_reference ,set_reference ,
368
+ doc = "Reference Object we point to" )
369
+ ref = reference
370
+
371
+ """
368
372
@ property
369
373
def reference(self) -> Union['Head', 'RemoteReference', 'TagReference', 'Reference']:
370
374
return self._get_reference()
@@ -385,6 +389,7 @@ def is_detached(self):
385
389
return False
386
390
except TypeError:
387
391
return True
392
+ """
388
393
389
394
def log (self )- > 'RefLog' :
390
395
"""