diff --git a/Library/Homebrew/dev-cmd/vendor-gems.rb b/Library/Homebrew/dev-cmd/vendor-gems.rb index ef07ee13c3..a2cae01cbc 100644 --- a/Library/Homebrew/dev-cmd/vendor-gems.rb +++ b/Library/Homebrew/dev-cmd/vendor-gems.rb @@ -58,6 +58,7 @@ module Homebrew # Although we don't use 2.4.21, Dependabot does as it currently ignores your lockfile version. # https://github.com/rubygems/rubygems/issues/7169 safe_system "bundle", "lock", "--add-platform", "aarch64-linux", "arm-linux" + system "git", "add", "Gemfile.lock" unless args.no_commit? if args.non_bundler_gems? %w[