Permalink
Browse files

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

…pods
  • Loading branch information...
fabiopelosin committed Mar 20, 2012
1 parent c3bb9a1 commit 194de4488839271ddc8addaf8993800b81594c11
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cocoapods/command/repo.rb
@@ -52,7 +52,7 @@ def add
end
def update
- dirs = @name ? [dir] : config.repos_dir.children
+ dirs = @name ? [dir] : config.repos_dir.children.select {|c| c.directory?}
dirs.each do |dir|
puts "Updating spec repo `#{dir.basename}'" unless config.silent?
Dir.chdir(dir) { git("pull") }

2 comments on commit 194de44

@alloy

This comment has been minimized.

Show comment Hide comment
@alloy

alloy Mar 20, 2012

Member

Thanks :) Can you close the tickets?

Member

alloy replied Mar 20, 2012

Thanks :) Can you close the tickets?

@fabiopelosin

This comment has been minimized.

Show comment Hide comment
@fabiopelosin

fabiopelosin Mar 20, 2012

Member

Sure!

Member

fabiopelosin replied Mar 20, 2012

Sure!

Please sign in to comment.