lib/git/heatmap/command/generate.rb in git-heatmap-0.2.1 vs lib/git/heatmap/command/generate.rb in git-heatmap-0.2.2

- old
+ new

@@ -73,12 +73,18 @@ def call commits = Commits.new(filter: self.period, depth: @options[:depth]) @paths.each do |path| - repository = Rugged::Repository.discover(path) + Console.logger.info "Loading commits from #{path}..." - commits.add(repository) + begin + repository = Rugged::Repository.discover(path) + + commits.add(repository) + rescue + Console.logger.error($!) + end end File.write(output_path, template(commits).call) end end