File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ public static GitErrorCode UnlockRef(
584
584
IntPtr payload ,
585
585
[ MarshalAs ( UnmanagedType . Bool ) ] bool force ,
586
586
[ MarshalAs ( UnmanagedType . Bool ) ] bool update_reflog ,
587
- IntPtr refNamePtr , // const char *
587
+ IntPtr referencePtr , // const git_reference *
588
588
IntPtr who , // const git_signature *
589
589
IntPtr messagePtr // const char *
590
590
)
@@ -594,7 +594,11 @@ IntPtr messagePtr // const char *
594
594
try
595
595
{
596
596
RefdbBackend refdbBackend = MarshalRefdbBackend ( backend ) ;
597
- string refName = LaxUtf8Marshaler . FromNative ( refNamePtr ) ;
597
+
598
+ var referenceHandle = new NotOwnedReferenceSafeHandle ( referencePtr ) ;
599
+ string refName = Proxy . git_reference_name ( referenceHandle ) ;
600
+ GitReferenceType type = Proxy . git_reference_type ( referenceHandle ) ;
601
+
598
602
refdbBackend . UnlockReference ( refName ) ;
599
603
600
604
res = GitErrorCode . Ok ;
You can’t perform that action at this time.
0 commit comments