Bugfix: not ignoring data files

This commit is contained in:
Dmitry
2017-12-24 21:13:06 -08:00
parent 863e0e4b14
commit 3473dc6ed5
+1 -1
View File
@@ -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)