File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -371,10 +371,11 @@ def data_index(self) -> "DataIndex":
371
371
return self ._data_index
372
372
373
373
def drop_data_index (self ) -> None :
374
- try :
375
- self .data_index .delete_node (("tree" ,))
376
- except KeyError :
377
- pass
374
+ for key in self .data_index .ls ((), detail = False ):
375
+ try :
376
+ self .data_index .delete_node (key )
377
+ except KeyError :
378
+ pass
378
379
self .data_index .commit ()
379
380
self ._reset ()
380
381
@@ -626,7 +627,7 @@ def site_cache_dir(self) -> str:
626
627
# components were changed (useful to prevent newer dvc versions from
627
628
# using older broken cache). Please reset this back to 0 if other parts
628
629
# of the token components are changed.
629
- salt = 1
630
+ salt = 2
630
631
631
632
# NOTE: This helps us avoid accidentally reusing cache for repositories
632
633
# that just happened to be at the same path as old deleted ones.
You can’t perform that action at this time.
0 commit comments