diff --git a/lib/health_inspector/checklists/cookbooks.rb b/lib/health_inspector/checklists/cookbooks.rb
index <HASH>..<HASH> 100644
--- a/lib/health_inspector/checklists/cookbooks.rb
+++ b/lib/health_inspector/checklists/cookbooks.rb
@@ -38,6 +38,7 @@ module HealthInspector
           Chef::CookbookVersion::COOKBOOK_SEGMENTS.each do |segment|
             cookbook.manifest[segment].each do |manifest_record|
               path = cookbook_path.join("#{manifest_record['path']}")
+              next if path.basename.to_s == '.git'
 
               if path.exist?
                 checksum = checksum_cookbook_file(path)
Fix a bug that happens with git submodules in some cases

Fixes #7