diff options
author | JakobDev <jakobdev@gmx.de> | 2022-09-15 15:25:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 21:25:16 +0800 |
commit | bf325d44120c4a6fc7f67ff1dc25db770247c9a7 (patch) | |
tree | c685496a02305cedcaa6be45f864a1ece6aadd93 /services/forms/repo_branch_form.go | |
parent | ef40324c431a6cf58ff775128da48fc48c9852fe (diff) | |
download | gitea-bf325d44120c4a6fc7f67ff1dc25db770247c9a7.tar.gz gitea-bf325d44120c4a6fc7f67ff1dc25db770247c9a7.zip |
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.
Diffstat (limited to 'services/forms/repo_branch_form.go')
-rw-r--r-- | services/forms/repo_branch_form.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/forms/repo_branch_form.go b/services/forms/repo_branch_form.go index f9262aaede..011926092f 100644 --- a/services/forms/repo_branch_form.go +++ b/services/forms/repo_branch_form.go @@ -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 } |