forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview: fix resubmitFork handler to avoid query-escaping revs

Changed files
+1 -2
appview
state
+1 -2
appview/state/pull.go
···
"io"
"log"
"net/http"
-
"net/url"
"strconv"
"time"
···
return
-
hiddenRef := url.QueryEscape(fmt.Sprintf("hidden/%s/%s", pull.PullSource.Branch, pull.TargetBranch))
+
hiddenRef := fmt.Sprintf("hidden/%s/%s", pull.PullSource.Branch, pull.TargetBranch)
comparison, err := ksClient.Compare(forkRepo.Did, forkRepo.Name, hiddenRef, pull.PullSource.Branch)
if err != nil {
log.Printf("failed to compare branches: %s", err)