mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
use string comparison
This commit is contained in:
parent
1bbf675cee
commit
6e53b9aca5
@ -198,7 +198,7 @@ func (te *TreeEntry) GetPathInRepo() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
if entry.ID == current.ID {
|
if entry.ID.String() == current.ID.String() {
|
||||||
path = entry.Name() + "/" + path
|
path = entry.Name() + "/" + path
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user