diff options
Diffstat (limited to 'cshared/remote_cshared.go')
-rw-r--r-- | cshared/remote_cshared.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cshared/remote_cshared.go b/cshared/remote_cshared.go index 04a26de..9ae72f3 100644 --- a/cshared/remote_cshared.go +++ b/cshared/remote_cshared.go @@ -130,7 +130,7 @@ func c_Remote_Head(r uint64) (*C.char, int, *C.char) { if err != nil { return nil, ErrorCodeInternal, C.CString(err.Error()) } - return C.CString(string(hash[:])), ErrorCodeSuccess, nil + return CBytes(hash[:]), ErrorCodeSuccess, nil } //export c_Remote_Fetch @@ -177,7 +177,7 @@ func c_Remote_Ref(r uint64, refName string) (*C.char, int, *C.char) { if err != nil { return nil, ErrorCodeInternal, C.CString(err.Error()) } - return C.CString(string(hash[:])), ErrorCodeSuccess, nil + return CBytes(hash[:]), ErrorCodeSuccess, nil } //export c_Remote_Refs |