diff options
author | Adam Spiers <git@adamspiers.org> | 2013-11-15 20:49:51 -0500 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-05 16:57:07 +0000 |
commit | 6e86e8b7f648bd6a3a6d3216aa5899414b65cbed (patch) | |
tree | 63fafebeb0cc0c4c4d3bd5be9e91d2ca938170e0 | |
parent | f2cddb4aa00de4ddff2cdca251758e25e95e04ad (diff) | |
download | git-deps-6e86e8b7f648bd6a3a6d3216aa5899414b65cbed.tar.gz |
don't crash on commits which only add files
-rwxr-xr-x | git-deps | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -176,7 +176,8 @@ class DependencyDetector: self.find_dependencies_with_parent(dependent, parent) self.done.append(dependent.hex) self.logger.debug("Found all dependencies for %s" % dependent.hex[:8]) - dependencies = self.dependencies[dependent.hex] + # A commit won't have any dependencies if it only added new files + dependencies = self.dependencies.get(dependent.hex, {}) self.notify_listeners('dependent_done', dependent, dependencies) def find_dependencies_with_parent(self, dependent, parent): |