aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 4b8096742..251fbb4d2 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -302,7 +302,10 @@ class MercurialDownloadStrategy <AbstractDownloadStrategy
safe_system 'hg', 'clone', url, @clone
else
puts "Updating #{@clone}"
- Dir.chdir(@clone) { safe_system 'hg', 'pull', '-u' }
+ Dir.chdir(@clone) do
+ safe_system 'hg', 'pull'
+ safe_system 'hg', 'update'
+ end
end
end