lib/command/executor/fetcher.rb in cocoapods-binary-cache-0.1.3 vs lib/command/executor/fetcher.rb in cocoapods-binary-cache-0.1.5

- old
+ new

@@ -20,10 +20,10 @@ def fetch_cache(repo, branch, dest_dir) Pod::UI.puts "Fetching cache from #{repo} (branch: #{branch})".green if Dir.exist?(dest_dir + "/.git") git("fetch origin #{branch}") git("checkout -f FETCH_HEAD", ignore_output: true) - git("branch -D #{branch} || true", ignore_output: true, can_fail: true) + git("branch -D #{branch}", ignore_output: true, can_fail: true) git("checkout -b #{branch}") else FileUtils.rm_rf(dest_dir) git_clone("--depth=1 --branch=#{branch} #{repo} #{dest_dir}") end