We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf657efc commita8ee94bCopy full SHA for a8ee94b
git/refs/symbolic.py
@@ -493,7 +493,9 @@ def delete(cls, repo, path):
493
# END remove reflog
494
495
@classmethod
496
-def_create(cls,repo,path,resolve,reference,force,logmsg=None):
+def_create(cls:Type[T_References],repo:'Repo',path:PathLike,resolve:bool,
497
+reference:Union['SymbolicReference',str],force:bool,
498
+logmsg:Union[str,None]=None)->T_References:
499
"""internal method used to create a new symbolic reference.
500
If resolve is False, the reference will be taken as is, creating
501
a proper symbolic reference. Otherwise it will be resolved to the
@@ -511,7 +513,7 @@ def _create(cls, repo, path, resolve, reference, force, logmsg=None):
511
513
ifnotforceandos.path.isfile(abs_ref_path):
512
514
target_data=str(target)
515
ifisinstance(target,SymbolicReference):
-target_data=target.path
516
+target_data=str(target.path)
517
ifnotresolve:
518
target_data="ref: "+target_data
519
withopen(abs_ref_path,'rb')asfd: