Skip to content

Commit

Permalink
Merge pull request #1940 from timbrel/fix-1939
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste authored Aug 15, 2024
2 parents da8f3ca + 0d188e9 commit 0357ccc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/git_mixins/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ def run_commit_graph_write():
return branches

slow_repo = self.current_state().get("slow_repo", None)
supports_ahead_behind = (
compute_ahead_behind = (
self.git_version >= FOR_EACH_REF_SUPPORTS_AHEAD_BEHIND
and slow_repo is not False
and not slow_repo
)
probe_speed = slow_repo is None and supports_ahead_behind
return get_branches__(probe_speed, supports_ahead_behind)
probe_speed = compute_ahead_behind and slow_repo is None
return get_branches__(probe_speed, compute_ahead_behind)

def _cache_branches(self, branches, refs):
# type: (List[Branch], Sequence[str]) -> None
Expand Down

0 comments on commit 0357ccc

Please sign in to comment.