MercurialDownloadStrategy: pull and update instead of update only

This commit is contained in:
Tuncer Ayaz 2010-06-10 21:22:40 +02:00 committed by Adam Vandenberg
parent ced8edacdc
commit 914a068dc8

View File

@ -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