aboutsummaryrefslogtreecommitdiff
path: root/git_hooks_handle_other.go
diff options
context:
space:
mode:
Diffstat (limited to 'git_hooks_handle_other.go')
-rw-r--r--git_hooks_handle_other.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/git_hooks_handle_other.go b/git_hooks_handle_other.go
index 4285784..89a4193 100644
--- a/git_hooks_handle_other.go
+++ b/git_hooks_handle_other.go
@@ -20,6 +20,7 @@ import (
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
"github.com/jackc/pgx/v5"
+ "go.lindenii.runxiyu.org/forge/misc"
"go.lindenii.runxiyu.org/lindenii-common/ansiec"
"go.lindenii.runxiyu.org/lindenii-common/clog"
)
@@ -54,7 +55,7 @@ func hooksHandler(conn net.Conn) {
{
var ok bool
- packPass, ok = packPasses.Load(bytesToString(cookie))
+ packPass, ok = packPasses.Load(misc.BytesToString(cookie))
if !ok {
if _, err = conn.Write([]byte{1}); err != nil {
return