From 5f46f05992ae0ab79c29e432255d962631d5641f Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 9 Jan 2018 18:23:28 -0800 Subject: [PATCH] Bugfix: create a cache dir for freshly checkout-ed repo --- dvc/cache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dvc/cache.py b/dvc/cache.py index feec198f7..a211c5916 100644 --- a/dvc/cache.py +++ b/dvc/cache.py @@ -8,6 +8,8 @@ class Cache(object): def __init__(self, dvc_dir): self.cache_dir = os.path.abspath(os.path.realpath(os.path.join(dvc_dir, self.CACHE_DIR))) + if not os.path.exists(self.cache_dir): + os.mkdir(self.cache_dir) @staticmethod def init(dvc_dir):