Skip to content

Commit

Permalink
brancher: clear repo.index on each branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Oct 11, 2022
1 parent a6ea9ac commit af888e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dvc/repo/brancher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit af888e9

Please sign in to comment.