mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 14:07:52 +01:00
Fix typos (#21947)
Two typos The `recieve` typo is also present in a translation.5f38acd9a0/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.5f38acd9a0/options/license/xinetd (L21)
This commit is contained in:
parent
5f38acd9a0
commit
4b5a6e5ef0
@ -218,9 +218,9 @@ Gitea or set your environment appropriately.`, "")
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
supportProcRecive := false
|
supportProcReceive := false
|
||||||
if git.CheckGitVersionAtLeast("2.29") == nil {
|
if git.CheckGitVersionAtLeast("2.29") == nil {
|
||||||
supportProcRecive = true
|
supportProcReceive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
@ -241,9 +241,9 @@ Gitea or set your environment appropriately.`, "")
|
|||||||
lastline++
|
lastline++
|
||||||
|
|
||||||
// If the ref is a branch or tag, check if it's protected
|
// 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
|
// 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
|
oldCommitIDs[count] = oldCommitID
|
||||||
newCommitIDs[count] = newCommitID
|
newCommitIDs[count] = newCommitID
|
||||||
refFullNames[count] = refFullName
|
refFullNames[count] = refFullName
|
||||||
|
@ -43,7 +43,7 @@ func EncodeSha1(str string) string {
|
|||||||
return hex.EncodeToString(h.Sum(nil))
|
return hex.EncodeToString(h.Sum(nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
// EncodeSha256 string to sha1 hex value.
|
// EncodeSha256 string to sha256 hex value.
|
||||||
func EncodeSha256(str string) string {
|
func EncodeSha256(str string) string {
|
||||||
h := sha256.New()
|
h := sha256.New()
|
||||||
_, _ = h.Write([]byte(str))
|
_, _ = h.Write([]byte(str))
|
||||||
|
Loading…
Reference in New Issue
Block a user