diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-11-26 17:21:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 00:21:54 +0800 |
commit | 4b5a6e5ef0e1bf0a4cff2a9c32f39348a0585c34 (patch) | |
tree | d7fad52b82aa0ce95e1949654c621dcb79bf64c6 /cmd | |
parent | 5f38acd9a08958024e8bbf47bcc482c79d844e44 (diff) | |
download | gitea-4b5a6e5ef0e1bf0a4cff2a9c32f39348a0585c34.tar.gz gitea-4b5a6e5ef0e1bf0a4cff2a9c32f39348a0585c34.zip |
Fix typos (#21947)
Two typos
The `recieve` typo is also present in a translation.
https://github.com/go-gitea/gitea/blob/5f38acd9a08958024e8bbf47bcc482c79d844e44/options/locale/locale_sv-SE.ini#L1760
Someone with a Crowdin account should fix that.
... and in a license file but I don't think we can change that because
that's the official text.
https://github.com/go-gitea/gitea/blob/5f38acd9a08958024e8bbf47bcc482c79d844e44/options/license/xinetd#L21
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/hook.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/hook.go b/cmd/hook.go index 3970d27cf2..83fcd93915 100644 --- a/cmd/hook.go +++ b/cmd/hook.go @@ -218,9 +218,9 @@ Gitea or set your environment appropriately.`, "") } } - supportProcRecive := false + supportProcReceive := false if git.CheckGitVersionAtLeast("2.29") == nil { - supportProcRecive = true + supportProcReceive = true } for scanner.Scan() { @@ -241,9 +241,9 @@ Gitea or set your environment appropriately.`, "") lastline++ // If the ref is a branch or tag, check if it's protected - // if supportProcRecive all ref should be checked because + // if supportProcReceive all ref should be checked because // permission check was delayed - if supportProcRecive || strings.HasPrefix(refFullName, git.BranchPrefix) || strings.HasPrefix(refFullName, git.TagPrefix) { + if supportProcReceive || strings.HasPrefix(refFullName, git.BranchPrefix) || strings.HasPrefix(refFullName, git.TagPrefix) { oldCommitIDs[count] = oldCommitID newCommitIDs[count] = newCommitID refFullNames[count] = refFullName |