Commit 194de448 authored by Fabio Pelosin's avatar Fabio Pelosin

[#132, #183] Fix to make repo update tolerant of stray files ~./cocoapods

parent c3bb9a1f
...@@ -52,7 +52,7 @@ module Pod ...@@ -52,7 +52,7 @@ module Pod
end end
def update def update
dirs = @name ? [dir] : config.repos_dir.children dirs = @name ? [dir] : config.repos_dir.children.select {|c| c.directory?}
dirs.each do |dir| dirs.each do |dir|
puts "Updating spec repo `#{dir.basename}'" unless config.silent? puts "Updating spec repo `#{dir.basename}'" unless config.silent?
Dir.chdir(dir) { git("pull") } Dir.chdir(dir) { git("pull") }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment