From 170d81eba0568856401f57ce655ad9881b802d21 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Tue, 25 Mar 2014 09:49:26 +0000 Subject: Stop using GitDirectory().list_files() to check for .gitfat This function causes a UnicodeDecodeError for some repositories when building. Use os.path.isfile() when looking for .gitfat instead. --- morphlib/gitdir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py index 06fcba6f..3d0ab53e 100644 --- a/morphlib/gitdir.py +++ b/morphlib/gitdir.py @@ -641,7 +641,7 @@ class GitDirectory(object): return self._runcmd(['git', 'fat', 'pull']) def has_fat(self): # pragma: no cover - return '.gitfat' in self.list_files() + return os.path.isfile(self.join_path('.gitfat')) def join_path(self, path): # pragma: no cover return os.path.join(self.dirname, path) -- cgit v1.2.1