aboutsummaryrefslogtreecommitdiff
path: root/ssh_handle_receive_pack.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-19 12:24:59 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-19 12:24:59 +0800
commit85c10776d45ef5746405f4e6546e29674d422521 (patch)
tree3effd8e5550fe132958a341d4e9e9947af5e609a /ssh_handle_receive_pack.go
parentRemove underscores from Go code, pt 6 (diff)
downloadforge-85c10776d45ef5746405f4e6546e29674d422521.tar.gz
forge-85c10776d45ef5746405f4e6546e29674d422521.tar.zst
forge-85c10776d45ef5746405f4e6546e29674d422521.zip
Remove underscores from Go code, pt 6
Diffstat (limited to '')
-rw-r--r--ssh_handle_receive_pack.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh_handle_receive_pack.go b/ssh_handle_receive_pack.go
index 81e94bc..ed1f765 100644
--- a/ssh_handle_receive_pack.go
+++ b/ssh_handle_receive_pack.go
@@ -60,17 +60,17 @@ func sshHandleRecvPack(session gliderSSH.Session, pubkey, repoIdentifier string)
switch contribReq {
case "closed":
if !directAccess {
- return errors.New("you need direct access to push to this repo.")
+ return errors.New("you need direct access to push to this repo")
}
case "registered_user":
if userType != "registered" {
- return errors.New("you need to be a registered user to push to this repo.")
+ return errors.New("you need to be a registered user to push to this repo")
}
case "ssh_pubkey":
fallthrough
case "federated":
if pubkey == "" {
- return errors.New("you need to have an SSH public key to push to this repo.")
+ return errors.New("you need to have an SSH public key to push to this repo")
}
if userType == "" {
userID, err = addUserSSH(session.Context(), pubkey)