mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 07:18:28 +01:00
Bugfix: not ignoring data files
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user