aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-10-11 00:11:59 -0500
committerJack Nagel2013-10-11 00:21:25 -0500
commit9705e922e30943cf0a7b327c59e69be6f8ba03e5 (patch)
treec95dd6df667180df71a556a04bf7ea6ea24da6a8 /Library
parent90b1102f1a6198db2807976b027fe8f6ce2e1226 (diff)
downloadbrew-9705e922e30943cf0a7b327c59e69be6f8ba03e5.tar.bz2
GitDownloadStrategy: remove redundant use of :quiet_flag
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 4b629d1d4..488e75f23 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -526,9 +526,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
else `git symbolic-ref refs/remotes/origin/HEAD`.strip.split("/").last
end
- args = %w{checkout -f}
- args << { :quiet_flag => '-q' }
- args << ref
+ %W{checkout -f #{ref}}
end
def checkout
@@ -542,9 +540,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
else "origin/HEAD"
end
- args = %w{reset}
- args << { :quiet_flag => "-q" }
- args << "--hard" << ref
+ %W{reset --hard #{ref}}
end
def reset