mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-20 05:19:24 +02:00
Remove origin prefix when creating local branch based from origin
This commit is contained in:
parent
e478c254d4
commit
bc044c64b2
@ -505,8 +505,8 @@ func (gui *Gui) handleNewBranchOffCurrentItem() error {
|
|||||||
|
|
||||||
prefilledName := ""
|
prefilledName := ""
|
||||||
if context.GetKey() == REMOTE_BRANCHES_CONTEXT_KEY {
|
if context.GetKey() == REMOTE_BRANCHES_CONTEXT_KEY {
|
||||||
// will set to the remote's existing name
|
// will set to the remote's branch name without the remote name
|
||||||
prefilledName = item.ID()
|
prefilledName = strings.SplitAfterN(item.ID(), "/", 2)[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
return gui.prompt(promptOpts{
|
return gui.prompt(promptOpts{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user