From cb47ac4eaee7afffe060751d73f27b5793714903 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Wed, 1 Nov 2017 01:24:50 +0200 Subject: [PATCH] repository_change: skip .dvc when collecting timestamps Fixes #277 Signed-off-by: Ruslan Kuprieiev --- dvc/repository_change.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvc/repository_change.py b/dvc/repository_change.py index c34916a92..d2d135981 100644 --- a/dvc/repository_change.py +++ b/dvc/repository_change.py @@ -116,7 +116,10 @@ class RepositoryChange(object): def data_file_timesteps(self): res = set() - for root, dirs, files in os.walk('.'): + for root, dirs, files in os.walk(self._settings.git.git_dir_abs): + if root.startswith(os.path.join(self._settings.git.git_dir_abs, ConfigI.CONFIG_DIR)): + continue + for file in files: filename = os.path.join(root, file) if os.path.exists(filename):