Skip to content

Commit 35296da

Browse files
authored
Merge branch 'master' into 755-kg-validation
2 parents cd13981 + 86fedaf commit 35296da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

renku/core/models/provenance/activities.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ def paths(self):
193193
index = set()
194194

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

198203
is_dataset = self.client.DATASETS in str(path_)

0 commit comments

Comments
 (0)