diff --git a/Library/Homebrew/dev-cmd/vendor-gems.rb b/Library/Homebrew/dev-cmd/vendor-gems.rb index ef07ee13c33e6..a2cae01cbc9c2 100644 --- a/Library/Homebrew/dev-cmd/vendor-gems.rb +++ b/Library/Homebrew/dev-cmd/vendor-gems.rb @@ -58,6 +58,7 @@ def vendor_gems # 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[