mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-14 09:36:24 -04:00
Fix panic when branch.autosetuprebase is set
It actually expect `branch.<name>.*` `man git-config | rg "\s+branch\.\S+\$"` to show all possible keys.
This commit is contained in:
parent
050bffa580
commit
41cd78af48
|
|
@ -93,7 +93,8 @@ func (self *ConfigCommands) Branches(cmd oscommands.ICmdObjBuilder) map[string]*
|
|||
}
|
||||
// key is like "branch.<name>.remote" or "branch.<name>.merge"
|
||||
lastDot := strings.LastIndex(key, ".")
|
||||
if lastDot < 0 {
|
||||
// ignore key like branch.autosetuprebase
|
||||
if lastDot < len("branch.") {
|
||||
continue
|
||||
}
|
||||
configKey := key[lastDot+1:]
|
||||
|
|
|
|||
Loading…
Reference in a new issue