File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func CherryPick(ctx *context.Context) {
5050 ctx .Data ["RequireHighlightJS" ] = true
5151
5252 canCommit := renderCommitRights (ctx )
53- ctx .Data ["TreePath" ] = "patch "
53+ ctx .Data ["TreePath" ] = ""
5454
5555 if canCommit {
5656 ctx .Data ["commit_choice" ] = frmCommitChoiceDirect
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func NewDiffPatch(ctx *context.Context) {
2828
2929 canCommit := renderCommitRights (ctx )
3030
31- ctx .Data ["TreePath" ] = "patch "
31+ ctx .Data ["TreePath" ] = ""
3232
3333 ctx .Data ["commit_summary" ] = ""
3434 ctx .Data ["commit_message" ] = ""
@@ -55,7 +55,7 @@ func NewDiffPatchPost(ctx *context.Context) {
5555 branchName = form .NewBranchName
5656 }
5757 ctx .Data ["RequireHighlightJS" ] = true
58- ctx .Data ["TreePath" ] = "patch "
58+ ctx .Data ["TreePath" ] = ""
5959 ctx .Data ["BranchLink" ] = ctx .Repo .RepoLink + "/src/" + ctx .Repo .BranchNameSubURL ()
6060 ctx .Data ["FileContent" ] = form .Content
6161 ctx .Data ["commit_summary" ] = form .CommitSummary
Original file line number Diff line number Diff line change 1515 <div class="divider">:</div>
1616 <a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
1717 <span>{{.i18n.Tr "repo.editor.or"}} <a href="{{$.BranchLink}}">{{.i18n.Tr "repo.editor.cancel_lower"}}</a></span>
18- <input type="hidden" id="tree_path" name="tree_path" value="patch " required>
18+ <input type="hidden" id="tree_path" name="tree_path" value="" required>
1919 <input id="file-name" type="hidden" value="diff.patch">
2020 </div>
2121 </div>
You can’t perform that action at this time.
0 commit comments