Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhuklinets authored Aug 8, 2024
1 parent e9b268a commit a861c1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion updater/bin/update_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ def show_diff(original_file, updated_file)
repo_contents_path: $options[:repo_contents_path],
options: $options[:updater_options]
}
fetcher = Dependabot::FileFetchers.for_package_manager($package_manager).new(**fetcher_args)
if clone
fetcher.clone_repo_contents
# Custom cloning, built-in doesn't work because of authentication
Expand Down Expand Up @@ -587,7 +588,7 @@ def show_diff(original_file, updated_file)
else
puts "Fetching #{$package_manager} dependency files ..."
end
fetcher = Dependabot::FileFetchers.for_package_manager($package_manager).new(**fetcher_args)

files = fetcher.files
commit = fetcher.commit
puts "Found #{files.length} dependency file(s) at commit #{commit}"
Expand Down

0 comments on commit a861c1d

Please sign in to comment.