forked from tangled.org/core
this repo has no description

appview: repo: fix compare url to work with pathescaped refs

Signed-off-by: oppiliappan <me@oppi.li>

Changed files
+4
appview
repo
+4
appview/repo/repo.go
···
"io"
"log"
"net/http"
+
"net/url"
"path"
"slices"
"sort"
···
head = parts[1]
+
+
base, _ = url.PathUnescape(base)
+
head, _ = url.PathUnescape(head)
if base == "" || head == "" {
log.Printf("invalid comparison")