File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func CherryPick(ctx *context.Context) {
50
50
ctx .Data ["RequireHighlightJS" ] = true
51
51
52
52
canCommit := renderCommitRights (ctx )
53
- ctx .Data ["TreePath" ] = "patch "
53
+ ctx .Data ["TreePath" ] = ""
54
54
55
55
if canCommit {
56
56
ctx .Data ["commit_choice" ] = frmCommitChoiceDirect
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ func NewDiffPatchPost(ctx *context.Context) {
55
55
branchName = form .NewBranchName
56
56
}
57
57
ctx .Data ["RequireHighlightJS" ] = true
58
- ctx .Data ["TreePath" ] = "patch "
58
+ ctx .Data ["TreePath" ] = ""
59
59
ctx .Data ["BranchLink" ] = ctx .Repo .RepoLink + "/src/" + ctx .Repo .BranchNameSubURL ()
60
60
ctx .Data ["FileContent" ] = form .Content
61
61
ctx .Data ["commit_summary" ] = form .CommitSummary
Original file line number Diff line number Diff line change 15
15
<div class="divider">:</div>
16
16
<a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
17
17
<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>
19
19
<input id="file-name" type="hidden" value="diff.patch">
20
20
</div>
21
21
</div>
You can’t perform that action at this time.
0 commit comments