aboutsummaryrefslogtreecommitdiff
path: root/ssh_handle_upload_pack.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-19 21:19:15 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-19 21:19:15 +0800
commit7fb71b36ad50153f6e05d066284688d1128a7a21 (patch)
treefbbcc33fdeeb43b1c495baba122a5be845b61ad9 /ssh_handle_upload_pack.go
parentssh/recv, users, schema: Create pubkey_only users (diff)
downloadforge-7fb71b36ad50153f6e05d066284688d1128a7a21.tar.gz
forge-7fb71b36ad50153f6e05d066284688d1128a7a21.tar.zst
forge-7fb71b36ad50153f6e05d066284688d1128a7a21.zip
ssh/recv, hooks: Create MRs on push, reject pushes to others' MRs
Diffstat (limited to 'ssh_handle_upload_pack.go')
-rw-r--r--ssh_handle_upload_pack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh_handle_upload_pack.go b/ssh_handle_upload_pack.go
index 7435668..8efcd28 100644
--- a/ssh_handle_upload_pack.go
+++ b/ssh_handle_upload_pack.go
@@ -11,7 +11,7 @@ import (
// ssh_handle_upload_pack handles clones/fetches. It just uses git-upload-pack
// and has no ACL checks.
func ssh_handle_upload_pack(session glider_ssh.Session, pubkey string, repo_identifier string) (err error) {
- repo_path, _, _, _, err := get_repo_path_perms_from_ssh_path_pubkey(session.Context(), repo_identifier, pubkey)
+ _, repo_path, _, _, _, _, err := get_repo_path_perms_from_ssh_path_pubkey(session.Context(), repo_identifier, pubkey)
if err != nil {
return err
}