diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-18 10:23:44 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-18 10:23:44 +0800 |
commit | dd95e2dbfad7f39060dc70f145d0e1478770e454 (patch) | |
tree | 863f9c3a941f21a66fe0af1cbe9a09ae444c8a46 /ssh_handle_upload_pack.go | |
parent | README.md: Mention that anonymous pushes to contrib/ are possible now (diff) | |
download | forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.tar.gz forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.tar.zst forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.zip |
*.go: Add some comments for docs
Diffstat (limited to 'ssh_handle_upload_pack.go')
-rw-r--r-- | ssh_handle_upload_pack.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh_handle_upload_pack.go b/ssh_handle_upload_pack.go index ac52e5c..afc9900 100644 --- a/ssh_handle_upload_pack.go +++ b/ssh_handle_upload_pack.go @@ -8,6 +8,8 @@ import ( glider_ssh "github.com/gliderlabs/ssh" ) +// 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) if err != nil { |