diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go index 94c550396f..eb992ba538 100644 --- a/modules/git/tree_entry.go +++ b/modules/git/tree_entry.go @@ -198,7 +198,7 @@ func (te *TreeEntry) GetPathInRepo() string { return "" } for _, entry := range entries { - if entry.ID == current.ID { + if entry.ID.String() == current.ID.String() { path = entry.Name() + "/" + path break }