Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 506bc39

Browse files
committed
Fix manifest processing to ensure dependencies are present before proceeding
1 parent 16f33dc commit 506bc39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git/pkgs/analyzer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def analyze_commit(rugged_commit, previous_snapshot = {})
9898
# Process added manifest files
9999
added_manifests.each do |manifest_path|
100100
result = parse_manifest_at_commit(rugged_commit, manifest_path)
101-
next unless result
101+
next unless result && result[:dependencies]
102102

103103
result[:dependencies].each do |dep|
104104
changes << {
@@ -202,7 +202,7 @@ def analyze_commit(rugged_commit, previous_snapshot = {})
202202
# Process removed manifest files
203203
removed_manifests.each do |manifest_path|
204204
result = parse_manifest_before_commit(rugged_commit, manifest_path)
205-
next unless result
205+
next unless result && result[:dependencies]
206206

207207
result[:dependencies].each do |dep|
208208
changes << {

0 commit comments

Comments
 (0)