Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
ac233ae8
Commit
ac233ae8
authored
May 05, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Git] Fix for Travis errors.
parent
82f0a632
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
git.rb
lib/cocoapods/downloader/git.rb
+2
-1
No files found.
lib/cocoapods/downloader/git.rb
View file @
ac233ae8
...
@@ -40,6 +40,7 @@ module Pod
...
@@ -40,6 +40,7 @@ module Pod
end
end
def
removed_cached_repos_if_needed
def
removed_cached_repos_if_needed
return
unless
caches_dir
.
exist?
Dir
.
chdir
(
caches_dir
)
do
Dir
.
chdir
(
caches_dir
)
do
repos
=
Pathname
.
new
(
caches_dir
).
children
.
select
{
|
c
|
c
.
directory?
}.
sort_by
(
&
:ctime
)
repos
=
Pathname
.
new
(
caches_dir
).
children
.
select
{
|
c
|
c
.
directory?
}.
sort_by
(
&
:ctime
)
while
caches_size
>=
config
.
git_cache_size
&&
!
repos
.
empty?
while
caches_size
>=
config
.
git_cache_size
&&
!
repos
.
empty?
...
@@ -67,7 +68,7 @@ module Pod
...
@@ -67,7 +68,7 @@ module Pod
end
end
def
clone_url
def
clone_url
# git_cache_size disables the cache
# git_cache_size
= 0
disables the cache
config
.
git_cache_size
==
0
?
url
:
cache_path
config
.
git_cache_size
==
0
?
url
:
cache_path
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment