mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-08 23:57:39 +00:00
[mod]: Bump gopkg.in/src-d/go-git.v4 from 4.8.0 to 4.10.0 (#6662)
Bumps [gopkg.in/src-d/go-git.v4](https://github.com/src-d/go-git) from 4.8.0 to 4.10.0. - [Release notes](https://github.com/src-d/go-git/releases) - [Commits](https://github.com/src-d/go-git/compare/v4.8.0...v4.10.0)
This commit is contained in:
parent
62b35964e3
commit
4183c846e3
28 changed files with 597 additions and 189 deletions
10
vendor/gopkg.in/src-d/go-git.v4/utils/merkletrie/noder/path.go
generated
vendored
10
vendor/gopkg.in/src-d/go-git.v4/utils/merkletrie/noder/path.go
generated
vendored
|
@ -3,8 +3,6 @@ package noder
|
|||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/text/unicode/norm"
|
||||
)
|
||||
|
||||
// Path values represent a noder and its ancestors. The root goes first
|
||||
|
@ -80,11 +78,9 @@ func (p Path) Compare(other Path) int {
|
|||
case i == len(p):
|
||||
return -1
|
||||
default:
|
||||
form := norm.Form(norm.NFC)
|
||||
this := form.String(p[i].Name())
|
||||
that := form.String(other[i].Name())
|
||||
|
||||
cmp := strings.Compare(this, that)
|
||||
// We do *not* normalize Unicode here. CGit doesn't.
|
||||
// https://github.com/src-d/go-git/issues/1057
|
||||
cmp := strings.Compare(p[i].Name(), other[i].Name())
|
||||
if cmp != 0 {
|
||||
return cmp
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue