Fix typo in logging

This commit is contained in:
Henry Goodman 2024-04-19 21:06:23 +10:00
parent b58a3af938
commit dd2b74d6a7
No known key found for this signature in database
GPG Key ID: 72E678A2D98E1D54
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ func preReceiveBranch(ctx *preReceiveContext, oldCommitID, newCommitID string, r
if isForcePush {
log.Warn("Forbidden: User %d is not allowed to force-push to protected branch: %s in %-v", ctx.opts.UserID, branchName, repo)
ctx.JSON(http.StatusForbidden, private.Response{
UserMsg: fmt.Sprintf("Not allowued to force-push to protected branch %s", branchName),
UserMsg: fmt.Sprintf("Not allowed to force-push to protected branch %s", branchName),
})
return
}