Fix commit name in Apply Patch page (#23086)
Fixes https://github.com/go-gitea/gitea/issues/22621#issuecomment-1439309200
This commit is contained in:
parent
8ed6096158
commit
ed954b070d
2 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,8 @@ const (
|
|||
func NewDiffPatch(ctx *context.Context) {
|
||||
canCommit := renderCommitRights(ctx)
|
||||
|
||||
ctx.Data["PageIsPatch"] = true
|
||||
|
||||
ctx.Data["TreePath"] = ""
|
||||
|
||||
ctx.Data["commit_summary"] = ""
|
||||
|
@ -51,6 +53,7 @@ func NewDiffPatchPost(ctx *context.Context) {
|
|||
if form.CommitChoice == frmCommitChoiceNewBranch {
|
||||
branchName = form.NewBranchName
|
||||
}
|
||||
ctx.Data["PageIsPatch"] = true
|
||||
ctx.Data["TreePath"] = ""
|
||||
ctx.Data["BranchLink"] = ctx.Repo.RepoLink + "/src/" + ctx.Repo.BranchNameSubURL()
|
||||
ctx.Data["FileContent"] = form.Content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue