diff --git a/branch_list_builder.go b/branch_list_builder.go index fdd88c850..5393bea3e 100644 --- a/branch_list_builder.go +++ b/branch_list_builder.go @@ -78,7 +78,8 @@ func (b *branchListBuilder) build() []Branch { branches := make([]Branch, 0) head := b.obtainCurrentBranch() validBranches := b.obtainSafeBranches() - reflogBranches := uniqueByName(append(b.obtainReflogBranches(), head)) + reflogBranches := b.obtainReflogBranches() + reflogBranches = uniqueByName(append([]Branch{head}, reflogBranches...)) branches = b.appendNewBranches(branches, reflogBranches, validBranches, true) branches = b.appendNewBranches(branches, validBranches, branches, false)