Skip to content
Snippets Groups Projects
Commit 1da05836 authored by Xu Cheng's avatar Xu Cheng Committed by Mike McQuaid
Browse files

bottle: allow --merge --write without commit

parent 0114a264
No related branches found
No related tags found
No related merge requests found
......@@ -343,10 +343,12 @@ module Homebrew
end
end
HOMEBREW_REPOSITORY.cd do
safe_system "git", "commit", "--no-edit", "--verbose",
"--message=#{f.name}: #{update_or_add} #{f.pkg_version} bottle.",
"--", f.path
unless ARGV.include? "--no-commit"
f.path.parent.cd do
safe_system "git", "commit", "--no-edit", "--verbose",
"--message=#{f.name}: #{update_or_add} #{f.pkg_version} bottle.",
"--", f.path
end
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment