Commit ac233ae8 authored by Fabio Pelosin's avatar Fabio Pelosin

[Git] Fix for Travis errors.

parent 82f0a632
......@@ -40,6 +40,7 @@ module Pod
end
def removed_cached_repos_if_needed
return unless caches_dir.exist?
Dir.chdir(caches_dir) do
repos = Pathname.new(caches_dir).children.select { |c| c.directory? }.sort_by(&:ctime)
while caches_size >= config.git_cache_size && !repos.empty?
......@@ -67,7 +68,7 @@ module Pod
end
def clone_url
# git_cache_size disables the cache
# git_cache_size = 0 disables the cache
config.git_cache_size == 0 ? url : cache_path
end
......
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