1
0
Fork 0
forked from forgejo/forgejo

Upgrade vendor "git" (#161)

This commit is contained in:
Thibault Meyer 2016-11-12 12:09:25 +01:00 committed by GitHub
parent b339858500
commit 54e6ed3431
5 changed files with 17 additions and 10 deletions

View file

@ -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 {