diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-12 16:10:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 08:10:09 +0000 |
commit | 22bf2ca6ba1b89bcb88217541f31900dd606391e (patch) | |
tree | 7e2e1d97ccc0eb44e6c8fb16244f2ba1ef317e00 /routers/web | |
parent | 01b1896bf5eacfd7f4f64d9ebb0ad165e3e60a5c (diff) | |
download | gitea-22bf2ca6ba1b89bcb88217541f31900dd606391e.tar.gz gitea-22bf2ca6ba1b89bcb88217541f31900dd606391e.zip |
Make API "compare" accept commit IDs (#32801)
Diffstat (limited to 'routers/web')
-rw-r--r-- | routers/web/repo/issue.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 833f59981b..5397411b59 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -9,7 +9,6 @@ import ( "fmt" "html/template" "net/http" - "net/url" "strconv" "strings" @@ -114,7 +113,6 @@ func MustAllowPulls(ctx *context.Context) { // User can send pull request if owns a forked repository. if ctx.IsSigned && repo_model.HasForkedRepo(ctx, ctx.Doer.ID, ctx.Repo.Repository.ID) { ctx.Repo.PullRequest.Allowed = true - ctx.Repo.PullRequest.HeadInfoSubURL = url.PathEscape(ctx.Doer.Name) + ":" + util.PathEscapeSegments(ctx.Repo.BranchName) } } |