From 69195fdbfdc44480976cc9dde8abd6b883a2186a Mon Sep 17 00:00:00 2001 From: jahabdank Date: Thu, 10 Oct 2019 13:39:01 +0200 Subject: [PATCH] Update __init__.py (#2593) found an issue when doing `dvc cache dir`. Should end with os separator --- dvc/repo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/repo/__init__.py b/dvc/repo/__init__.py index 060f32cff..7e66b8e91 100644 --- a/dvc/repo/__init__.py +++ b/dvc/repo/__init__.py @@ -164,7 +164,7 @@ class Repo(object): + updater.lock.files ) - if self.cache.local.cache_dir.startswith(self.root_dir): + if self.cache.local.cache_dir.startswith(self.root_dir + os.sep): flist += [self.cache.local.cache_dir] self.scm.ignore_list(flist)