aboutsummaryrefslogtreecommitdiff
path: root/git_hooks_handle_other.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 20:39:08 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 20:39:08 +0800
commit0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38 (patch)
tree6c44d89bfad25dc56d67334c903d15bdf81cb4e3 /git_hooks_handle_other.go
parentsshPubkey* shall no longer be global variables (diff)
downloadforge-0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38.tar.gz
forge-0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38.tar.zst
forge-0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38.zip
packPasses shall no longer be a global variable
Diffstat (limited to 'git_hooks_handle_other.go')
-rw-r--r--git_hooks_handle_other.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_hooks_handle_other.go b/git_hooks_handle_other.go
index 8b99285..687bd8f 100644
--- a/git_hooks_handle_other.go
+++ b/git_hooks_handle_other.go
@@ -55,7 +55,7 @@ func (s *server) hooksHandler(conn net.Conn) {
{
var ok bool
- packPass, ok = packPasses.Load(misc.BytesToString(cookie))
+ packPass, ok = s.packPasses.Load(misc.BytesToString(cookie))
if !ok {
if _, err = conn.Write([]byte{1}); err != nil {
return