diff options
| author | Tuncer Ayaz | 2010-06-10 21:22:40 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-10 12:57:20 -0700 |
| commit | 914a068dc8cc9f84188a4a8b194336c632744058 (patch) | |
| tree | ab86fa38df82a1260f174b091f4e8a2db8074c61 /Library | |
| parent | ced8edacdcc3dedd4403a1111b9ca0e4d062da19 (diff) | |
| download | brew-914a068dc8cc9f84188a4a8b194336c632744058.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 |
