From 6e82e7f7c4408c920031a77a001e7aa20fa865ce Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Wed, 6 Mar 2019 16:00:11 -0600 Subject: [PATCH] repo: remind to git add only when using git Fix #1685 --- dvc/repo/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/repo/__init__.py b/dvc/repo/__init__.py index 176bda17b7..094f2933fc 100644 --- a/dvc/repo/__init__.py +++ b/dvc/repo/__init__.py @@ -93,7 +93,9 @@ def find_dvc_dir(root=None): return os.path.join(root_dir, Repo.DVC_DIR) def remind_to_git_add(self): - if not self.files_to_git_add: + is_git_repo = type(self.scm).__name__ == "Git" + + if not is_git_repo or not self.files_to_git_add: return logger.info(