From 3473dc6ed5fcda0be8c373dceeab6da46073e12f Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 24 Dec 2017 21:13:06 -0800 Subject: [PATCH] Bugfix: not ignoring data files --- dvc/scm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/scm.py b/dvc/scm.py index 4a5082316..55321665a 100644 --- a/dvc/scm.py +++ b/dvc/scm.py @@ -59,7 +59,7 @@ class Git(Base): if not gitignore.startswith(self.root_dir): raise FileNotInRepoError() - if os.path.exists(gitignore) and entry in open(gitignore, 'r').read(): + if os.path.exists(gitignore) and entry in open(gitignore, 'r').readline(): return open(gitignore, 'a').write('\n' + entry)