Commit ba879a10 authored by Vladimir Pouzanov's avatar Vladimir Pouzanov

Do not update cache if it does not actually exist at download_head

parent 35270d28
......@@ -100,8 +100,11 @@ module Pod
end
def download_head
create_cache unless cache_exist?
update_cache
if cache_exist?
update_cache
else
create_cache
end
clone(clone_url, target_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