Permalink
Browse files

[Git] UI improvements.

  • Loading branch information...
1 parent 6e76974 commit 12841a4c6a3a4f02a0cedad92bf286c7a0f1e54d @fabiopelosin fabiopelosin committed Oct 1, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/cocoapods/downloader/git.rb
@@ -30,10 +30,11 @@ def download
end
def create_cache
- UI.section(" > Creating cache git repo (#{cache_path})",'',1)
- cache_path.rmtree if cache_path.exist?
- cache_path.mkpath
- git! %Q|clone --mirror "#{url}" "#{cache_path}"|
+ UI.section(" > Creating cache git repo (#{cache_path})",'',1) do
+ cache_path.rmtree if cache_path.exist?
+ cache_path.mkpath
+ git! %Q|clone --mirror "#{url}" "#{cache_path}"|
+ end
end
def prune_cache

0 comments on commit 12841a4

Please sign in to comment.