File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ,
66and this project adheres to [ Semantic Versioning] .
77
8+ ## [ Unreleased]
9+
10+ ### Fixed
11+
12+ - config: Fixed oneshot detection without ` oneshot_indexes ` .
13+
814## [ 5.2.3] - 2022-07-07
915
1016### Added
Original file line number Diff line number Diff line change @@ -1278,7 +1278,7 @@ def oneshot(self) -> bool:
12781278 """Whether all indexes have `last_level` field set"""
12791279 syncable_indexes = tuple (c for c in self .indexes .values () if not isinstance (c , HeadIndexConfig ))
12801280 oneshot_indexes = tuple (c for c in syncable_indexes if c .last_level )
1281- if len (oneshot_indexes ) == len (syncable_indexes ):
1281+ if len (oneshot_indexes ) == len (syncable_indexes ) > 0 :
12821282 return True
12831283 return False
12841284
You can’t perform that action at this time.
0 commit comments