bottle: allow --merge --write without commit

This commit is contained in:
Xu Cheng 2015-10-15 15:12:02 +08:00 committed by Mike McQuaid
parent 0114a26483
commit 1da0583634

View File

@ -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