summaryrefslogtreecommitdiff
path: root/git/index/typ.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/index/typ.py')
-rw-r--r--git/index/typ.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/typ.py b/git/index/typ.py
index 11077454..ec7699e2 100644
--- a/git/index/typ.py
+++ b/git/index/typ.py
@@ -57,7 +57,7 @@ class BlobFilter(object):
for pathlike in self.paths:
path: Path = pathlike if isinstance(pathlike, Path) else Path(pathlike)
# TODO: Change to use `PosixPath.is_relative_to` once Python 3.8 is no longer supported.
- if all(map(lambda t: t[0] == t[1], zip(path.parts, blob_path.parts))):
+ if all(i == j for i, j in zip(path.parts, blob_path.parts)):
return True
return False