Skip to content

Commit a791a79

Browse files
authored
Merge branch 'main' into correctly-fallback-mailer-configuration
2 parents 0edbac6 + 32590db commit a791a79

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

cmd/hook.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ Gitea or set your environment appropriately.`, "")
218218
}
219219
}
220220

221-
supportProcRecive := false
221+
supportProcReceive := false
222222
if git.CheckGitVersionAtLeast("2.29") == nil {
223-
supportProcRecive = true
223+
supportProcReceive = true
224224
}
225225

226226
for scanner.Scan() {
@@ -241,9 +241,9 @@ Gitea or set your environment appropriately.`, "")
241241
lastline++
242242

243243
// If the ref is a branch or tag, check if it's protected
244-
// if supportProcRecive all ref should be checked because
244+
// if supportProcReceive all ref should be checked because
245245
// permission check was delayed
246-
if supportProcRecive || strings.HasPrefix(refFullName, git.BranchPrefix) || strings.HasPrefix(refFullName, git.TagPrefix) {
246+
if supportProcReceive || strings.HasPrefix(refFullName, git.BranchPrefix) || strings.HasPrefix(refFullName, git.TagPrefix) {
247247
oldCommitIDs[count] = oldCommitID
248248
newCommitIDs[count] = newCommitID
249249
refFullNames[count] = refFullName

modules/base/tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func EncodeSha1(str string) string {
4343
return hex.EncodeToString(h.Sum(nil))
4444
}
4545

46-
// EncodeSha256 string to sha1 hex value.
46+
// EncodeSha256 string to sha256 hex value.
4747
func EncodeSha256(str string) string {
4848
h := sha256.New()
4949
_, _ = h.Write([]byte(str))

options/license/Knuth-CTAN

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This software is copyrighted. Unlimited copying and redistribution
2+
of this package and/or its individual files are permitted
3+
as long as there are no modifications. Modifications, and
4+
redistribution of modifications, are also permitted, but
5+
only if the resulting package and/or files are renamed.

options/license/libutil-David-Nugent

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Copyright (c) 1995 David Nugent <[email protected]>
2+
All rights reserved.
3+
4+
5+
Redistribution and use in source and binary forms, with or without modification, is permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice immediately at the beginning of the file, without modification, this list of conditions, and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10+
11+
3. This work was done expressly for inclusion into FreeBSD. Other use is permitted provided this notation is included.
12+
13+
4. Absolutely no warranty of function or purpose is made by the author David Nugent.
14+
15+
5. Modifications may be freely made to this file providing the above conditions are met.

0 commit comments

Comments
 (0)