brancher: clear repo.index on each branch

This commit is contained in:
Peter Rowlands
2022-10-11 16:12:00 +03:00
committed by Ruslan Kuprieiev
parent 2bc693fb4c
commit add28f73f1
+1
View File
@@ -77,6 +77,7 @@ def brancher( # noqa: E302
from dvc.fs import GitFileSystem
for sha, names in found_revs.items():
self.__dict__.pop("index", None)
self.fs = GitFileSystem(scm=scm, rev=sha)
self.root_dir = self.fs.path.join("/", *repo_root_parts)