]> source.dussan.org Git - gitea.git/commitdiff
Fix new branch creation to new url scheme (#2884)
authorLauris BH <lauris@nix.lv>
Sat, 11 Nov 2017 01:32:46 +0000 (03:32 +0200)
committerBo-Yi Wu <appleboy.tw@gmail.com>
Sat, 11 Nov 2017 01:32:46 +0000 (19:32 -0600)
templates/repo/branch_dropdown.tmpl

index 881747220ea44f98741e98170589e7fa8b2bf6ea..68a2d3c497a14a4ae1ebd447b81df68fb0b685b1 100644 (file)
@@ -53,7 +53,7 @@
                                                        {{end}}
                                                </div>
                                        </a>
-                                       <form ref="newBranchForm" action="{{.RepoLink}}/branches/_new/{{EscapePound .BranchName}}" method="post">
+                                       <form ref="newBranchForm" action="{{.RepoLink}}/branches/_new/{{EscapePound .BranchNameSubURL}}" method="post">
                                                {{.CsrfTokenHtml}}
                                                <input type="hidden" name="new_branch_name" v-model="searchTerm">
                                        </form>