diff options
| author | Tuncer Ayaz | 2010-06-10 21:22:40 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-10 12:57:20 -0700 |
| commit | 281a08ec93d1ef27f08dc77ed29e6f67a0e79653 (patch) | |
| tree | 8f4081597b5701d0441a28f6f91b6684899ace5c /Library | |
| parent | efa937452c8fce5eff171bd1b63a2c5428c8a2c0 (diff) | |
| download | homebrew-281a08ec93d1ef27f08dc77ed29e6f67a0e79653.tar.bz2 | |
MercurialDownloadStrategy: pull and update instead of update only
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 5 |
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 |
