diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-19 17:08:14 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-19 17:08:14 +0800 |
commit | 7f9705a29c29b77f9049f2d1222a2d08530fc225 (patch) | |
tree | 5c8edb97352e10dd0a347d497329c019f7ef1195 /ssh_handle_receive_pack.go | |
parent | *.go: Reformat (diff) | |
download | forge-7f9705a29c29b77f9049f2d1222a2d08530fc225.tar.gz forge-7f9705a29c29b77f9049f2d1222a2d08530fc225.tar.zst forge-7f9705a29c29b77f9049f2d1222a2d08530fc225.zip |
hooks: Use ssh stderr directly instead of going through hook
Diffstat (limited to 'ssh_handle_receive_pack.go')
-rw-r--r-- | ssh_handle_receive_pack.go | 4 |
1 files changed, 2 insertions, 2 deletions
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, |