GitDownloadStrategy: quiet reset in non-verbose mode

This commit is contained in:
Jack Nagel 2013-02-14 17:29:59 -06:00
parent 5f5d6ace5f
commit 166e262312

View File

@ -342,7 +342,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy
# otherwise the checkout-index won't checkout HEAD
# https://github.com/mxcl/homebrew/issues/7124
# must specify origin/HEAD, otherwise it resets to the current local HEAD
quiet_safe_system @@git, "reset", "--hard", "origin/HEAD"
quiet_safe_system @@git, "reset", { :quiet_flag => "-q" }, "--hard", "origin/HEAD"
end
# http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export
safe_system @@git, 'checkout-index', '-a', '-f', "--prefix=#{dst}/"