forked from forgejo/forgejo
Upgrade vendor "git" (#161)
This commit is contained in:
parent
b339858500
commit
54e6ed3431
5 changed files with 17 additions and 10 deletions
8
vendor/code.gitea.io/git/tree_entry.go
generated
vendored
8
vendor/code.gitea.io/git/tree_entry.go
generated
vendored
|
@ -11,7 +11,6 @@ import (
|
|||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
type EntryMode int
|
||||
|
@ -94,11 +93,11 @@ func (tes Entries) Less(i, j int) bool {
|
|||
t1, t2 := tes[i], tes[j]
|
||||
var k int
|
||||
for k = 0; k < len(sorter)-1; k++ {
|
||||
sort := sorter[k]
|
||||
s := sorter[k]
|
||||
switch {
|
||||
case sort(t1, t2):
|
||||
case s(t1, t2):
|
||||
return true
|
||||
case sort(t2, t1):
|
||||
case s(t2, t1):
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
@ -157,7 +156,6 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
|
|||
|
||||
if tes[i].Type != OBJECT_COMMIT {
|
||||
go func(i int) {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
cinfo := commitInfo{entryName: tes[i].Name()}
|
||||
c, err := commit.GetCommitByPath(filepath.Join(treePath, tes[i].Name()))
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue