Keep path when creating a new branch (#21153)

If you are create a new new branch while viewing file or directory, you
get redirected to the root of the repo. With this PR, you keep your
current path instead of getting redirected to the repo root.
This commit is contained in:
JakobDev authored and GitHub committed 2022-09-15 21:25:16 +08:00
1 parent ef40324c43
commit bf325d4412
3 files changed
+5 -1

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ import (
// NewBranchForm form for creating a new branch
type NewBranchForm struct {
NewBranchName string `binding:"Required;MaxSize(100);GitRefName"`
CurrentPath string
CreateTag bool
}