Update code.gitea.io/git
This commit is contained in:
parent
f6b58964d7
commit
0cf89a83c1
3 changed files with 24 additions and 71 deletions
3
vendor/code.gitea.io/git/tree_entry.go
generated
vendored
3
vendor/code.gitea.io/git/tree_entry.go
generated
vendored
|
@ -5,6 +5,7 @@
|
|||
package git
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
@ -215,7 +216,7 @@ func (state *getCommitInfoState) update(path string) error {
|
|||
return nil
|
||||
}
|
||||
var entryPath string
|
||||
if index := strings.IndexRune(relPath, '/'); index >= 0 {
|
||||
if index := strings.IndexRune(relPath, os.PathSeparator); index >= 0 {
|
||||
entryPath = filepath.Join(state.treePath, relPath[:index])
|
||||
} else {
|
||||
entryPath = path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue