File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -218,9 +218,9 @@ Gitea or set your environment appropriately.`, "")
218
218
}
219
219
}
220
220
221
- supportProcRecive := false
221
+ supportProcReceive := false
222
222
if git .CheckGitVersionAtLeast ("2.29" ) == nil {
223
- supportProcRecive = true
223
+ supportProcReceive = true
224
224
}
225
225
226
226
for scanner .Scan () {
@@ -241,9 +241,9 @@ Gitea or set your environment appropriately.`, "")
241
241
lastline ++
242
242
243
243
// 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
245
245
// 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 ) {
247
247
oldCommitIDs [count ] = oldCommitID
248
248
newCommitIDs [count ] = newCommitID
249
249
refFullNames [count ] = refFullName
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func EncodeSha1(str string) string {
43
43
return hex .EncodeToString (h .Sum (nil ))
44
44
}
45
45
46
- // EncodeSha256 string to sha1 hex value.
46
+ // EncodeSha256 string to sha256 hex value.
47
47
func EncodeSha256 (str string ) string {
48
48
h := sha256 .New ()
49
49
_ , _ = h .Write ([]byte (str ))
You can’t perform that action at this time.
0 commit comments