Skip to content

Commit

Permalink
Make adding files and committing into a single command
Browse files Browse the repository at this point in the history
For efficiency.
  • Loading branch information
deivid-rodriguez committed Oct 8, 2021
1 parent ad0160e commit 979d163
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bundler/spec/support/builders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,7 @@ def _build(options)
_default_files[path] += "\n#{Builders.constantize(name)}_PREV_REF = '#{current_ref}'"
end
super(options.merge(:path => libpath, :gemspec => update_gemspec, :source => source))
@context.git("add *", libpath)
@context.git("commit -m BUMP", libpath, :raise_on_error => false)
@context.git("commit -am BUMP", libpath, :raise_on_error => false)
end
end

Expand Down

0 comments on commit 979d163

Please sign in to comment.