We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0c6e11 commit da88a6dCopy full SHA for da88a6d
git/index/typ.py
@@ -4,6 +4,7 @@
4
5
from .util import pack, unpack
6
from git.objects import Blob
7
+from git.index.base import StageType
8
9
10
# typing ----------------------------------------------------------------------
@@ -48,10 +49,10 @@ def __init__(self, paths: Sequence[PathLike]) -> None:
48
49
"""
50
self.paths = paths
51
- def __call__(self, stage_blob: Blob) -> bool:
52
- path = stage_blob[1].path
+ def __call__(self, stage_blob: Tuple[StageType, Blob]) -> bool:
53
+ path: str = str(stage_blob[1].path)
54
for p in self.paths:
- if path.startswith(p):
55
+ if path.startswith(str(p)):
56
return True
57
# END for each path in filter paths
58
return False
0 commit comments