Permalink
Browse files

Fix problem whereby garlic wasn't updating repos correclty

  • Loading branch information...
1 parent 4dd3e6a commit fc45a238c417adb44d6543a191875e5584e9a70c @ianwhite committed Jan 22, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/garlic/repo.rb
View
@@ -49,7 +49,10 @@ def update
if url
begin
checkout 'master'
- cd(path) { sh "git pull origin master", :verbose => false }
+ cd(path) do
+ sh "git fetch origin", :verbose => false
+ sh "git pull", :verbose => false
+ end
rescue Exception => e
puts "\n\nIt seems there was a problem.\nTry running rake garlic:reset_repos\n\n"
raise e

0 comments on commit fc45a23

Please sign in to comment.