@@ -72,7 +72,7 @@ func (self *BranchLoader) Load(reflogCommits []*models.Commit,
72
72
onWorker func (func () error ),
73
73
renderFunc func (),
74
74
) ([]* models.Branch , error ) {
75
- branches := self .obtainBranches (self . version . IsAtLeast ( 2 , 22 , 0 ) )
75
+ branches := self .obtainBranches ()
76
76
77
77
if self .AppState .LocalBranchSortOrder == "recency" {
78
78
reflogBranches := self .obtainReflogBranches (reflogCommits )
@@ -232,7 +232,7 @@ func (self *BranchLoader) GetBaseBranch(branch *models.Branch, mainBranches *Mai
232
232
return split [0 ], nil
233
233
}
234
234
235
- func (self * BranchLoader ) obtainBranches (canUsePushTrack bool ) []* models.Branch {
235
+ func (self * BranchLoader ) obtainBranches () []* models.Branch {
236
236
output , err := self .getRawBranches ()
237
237
if err != nil {
238
238
panic (err )
@@ -255,7 +255,7 @@ func (self *BranchLoader) obtainBranches(canUsePushTrack bool) []*models.Branch
255
255
}
256
256
257
257
storeCommitDateAsRecency := self .AppState .LocalBranchSortOrder != "recency"
258
- return obtainBranch (split , storeCommitDateAsRecency , canUsePushTrack ), true
258
+ return obtainBranch (split , storeCommitDateAsRecency ), true
259
259
})
260
260
}
261
261
@@ -298,7 +298,7 @@ var branchFields = []string{
298
298
}
299
299
300
300
// Obtain branch information from parsed line output of getRawBranches()
301
- func obtainBranch (split []string , storeCommitDateAsRecency bool , canUsePushTrack bool ) * models.Branch {
301
+ func obtainBranch (split []string , storeCommitDateAsRecency bool ) * models.Branch {
302
302
headMarker := split [0 ]
303
303
fullName := split [1 ]
304
304
upstreamName := split [2 ]
@@ -310,12 +310,7 @@ func obtainBranch(split []string, storeCommitDateAsRecency bool, canUsePushTrack
310
310
311
311
name := strings .TrimPrefix (fullName , "heads/" )
312
312
aheadForPull , behindForPull , gone := parseUpstreamInfo (upstreamName , track )
313
- var aheadForPush , behindForPush string
314
- if canUsePushTrack {
315
- aheadForPush , behindForPush , _ = parseUpstreamInfo (upstreamName , pushTrack )
316
- } else {
317
- aheadForPush , behindForPush = aheadForPull , behindForPull
318
- }
313
+ aheadForPush , behindForPush , _ := parseUpstreamInfo (upstreamName , pushTrack )
319
314
320
315
recency := ""
321
316
if storeCommitDateAsRecency {
0 commit comments