mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-03 11:05:13 +02:00
fix a panic in hook_pre_recieve.go
This commit is contained in:
@@ -263,7 +263,7 @@ func loadObjectsSizesViaCatFile(ctx *gitea_context.PrivateContext, opts *git.Run
|
||||
var mu sync.Mutex
|
||||
|
||||
// Prepare numWorker slices to store the work
|
||||
reducedObjectIDs := make([][]string, 0, numWorkers)
|
||||
reducedObjectIDs := make([][]string, numWorkers)
|
||||
for i := 0; i < numWorkers; i++ {
|
||||
reducedObjectIDs[i] = make([]string, 0, len(objectIDs)/numWorkers+1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user