Fix use of reset_tree.

This commit is contained in:
Jelmer Vernooij 2021-03-02 18:26:45 +00:00
parent 0b9077f964
commit 3e63179616
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8

View file

@ -608,7 +608,7 @@ def build_incrementally(
if max_iterations is not None and len(fixed_errors) > max_iterations:
logging.warning("Last fix did not address the issue. Giving up.")
raise
reset_tree(local_tree, local_tree.basis_tree(), subpath=subpath)
reset_tree(local_tree, subpath=subpath)
if e.phase[0] == "build":
context = BuildDependencyContext(
e.phase,