From 7f9705a29c29b77f9049f2d1222a2d08530fc225 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 17:08:14 +0800 Subject: hooks: Use ssh stderr directly instead of going through hook --- ssh_handle_receive_pack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssh_handle_receive_pack.go') diff --git a/ssh_handle_receive_pack.go b/ssh_handle_receive_pack.go index 2eb647d..b76887f 100644 --- a/ssh_handle_receive_pack.go +++ b/ssh_handle_receive_pack.go @@ -13,7 +13,7 @@ import ( var err_unauthorized_push = errors.New("you are not authorized to push to this repository") type pack_to_hook_t struct { - session *glider_ssh.Session + session glider_ssh.Session pubkey string direct_access bool repo_path string @@ -38,7 +38,7 @@ func ssh_handle_receive_pack(session glider_ssh.Session, pubkey string, repo_ide } pack_to_hook_by_cookie.Store(cookie, pack_to_hook_t{ - session: &session, + session: session, pubkey: pubkey, direct_access: access, repo_path: repo_path, -- cgit v1.2.3