From dc5dd1e443cfa0dd44e5d58d24466bc74befcb15 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Sat, 27 Jul 2019 17:44:45 -0500 Subject: [PATCH] change set.update to set.add created a set with `{}` but resulted in a dictionary, making me think about `set` not supporting the `add` method. Thanks for the correction, @efiop ! Co-Authored-By: Ruslan Kuprieiev --- dvc/scm/git/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/scm/git/__init__.py b/dvc/scm/git/__init__.py index 5dd043ee0..c0592e896 100644 --- a/dvc/scm/git/__init__.py +++ b/dvc/scm/git/__init__.py @@ -260,7 +260,7 @@ class Git(Base): ) def track_file(self, path): - self.files_to_track.update(set(path)) + self.files_to_track.add(path) def belongs_to_scm(self, path): basename = os.path.basename(path)