Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion git_deps/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def blame_diff_hunk(self, dependent, parent, path, hunk):
self.logger.info(" Blaming hunk %s @ %s (listed below)" %
(line_range_before, parent.hex[:8]))

if not self.tree_lookup(path, parent):
if not self.tree_lookup(path, parent) or hunk.old_start == 0:
# This is probably because dependent added a new directory
# which was not previously in the parent.
return
Expand Down