mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-31 23:19:40 +02:00
fix reflog command
This commit is contained in:
parent
9ecd7908aa
commit
1c750fdb40
@ -46,7 +46,7 @@ func (b *BranchListBuilder) obtainCurrentBranch() commands.Branch {
|
|||||||
|
|
||||||
func (b *BranchListBuilder) obtainReflogBranches() []commands.Branch {
|
func (b *BranchListBuilder) obtainReflogBranches() []commands.Branch {
|
||||||
branches := make([]commands.Branch, 0)
|
branches := make([]commands.Branch, 0)
|
||||||
rawString, err := b.GitCommand.OSCommand.RunDirectCommand("git reflog -n100 --pretty='%cr|%gs' --grep-reflog='checkout: moving' HEAD")
|
rawString, err := b.GitCommand.OSCommand.RunCommandWithOutput("git reflog -n100 --pretty='%cr|%gs' --grep-reflog='checkout: moving' HEAD")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return branches
|
return branches
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user