Navigation Menu

Skip to content

Commit

Permalink
fix: ignore deleted paths in generated entities
Browse files Browse the repository at this point in the history
closes #806
  • Loading branch information
rokroskar committed Nov 15, 2019
1 parent 4f80efc commit 86fedaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions renku/core/models/provenance/activities.py
Expand Up @@ -192,6 +192,11 @@ def paths(self):
index = set()

for file_ in self.commit.diff(self.commit.parents or NULL_TREE):
# ignore deleted files (note they appear as ADDED)
# in this backwards diff
# TODO: set `deprecatedBy` for deleted paths
if file_.change_type == 'A':
continue
path_ = Path(file_.a_path)

is_dataset = self.client.DATASETS in str(path_)
Expand Down

0 comments on commit 86fedaf

Please sign in to comment.