mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-14 01:26:24 -04:00
more robust reading of reflog to get branch name
This commit is contained in:
parent
922f4ed5a4
commit
0687c07f50
|
|
@ -144,7 +144,7 @@ func branchInfoFromLine(line string) (string, string, string) {
|
|||
r := regexp.MustCompile("\\|.*\\s")
|
||||
line = r.ReplaceAllString(line, " ")
|
||||
words := strings.Split(line, " ")
|
||||
return words[0], words[1], words[3]
|
||||
return words[0], words[1], words[len(words)-1]
|
||||
}
|
||||
|
||||
func abbreviatedTimeUnit(timeUnit string) string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue