diff options
Diffstat (limited to '')
-rw-r--r-- | ssh_handle_receive_pack.go | 6 |
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) |