| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f0c6e11 commit da88a6d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | 5 | from .util import pack, unpack | |
| 6 | 6 | from git.objects import Blob | |
| 7 | + from git.index.base import StageType | ||
| 7 | 8 | ||
| 8 | 9 | ||
| 9 | 10 | # typing ---------------------------------------------------------------------- | |
@@ -48,10 +49,10 @@ def __init__(self, paths: Sequence[PathLike]) -> None: | |||
| 48 | 49 | """ | |
| 49 | 50 | self.paths = paths | |
| 50 | 51 | ||
| 51 | - def __call__(self, stage_blob: Blob) -> bool: | ||
| 52 | - path = stage_blob[1].path | ||
| 52 | + def __call__(self, stage_blob: Tuple[StageType, Blob]) -> bool: | ||
| 53 | + path: str = str(stage_blob[1].path) | ||
| 53 | 54 | for p in self.paths: | |
| 54 | - if path.startswith(p): | ||
| 55 | + if path.startswith(str(p)): | ||
| 55 | 56 | return True | |
| 56 | 57 | # END for each path in filter paths | |
| 57 | 58 | return False | |
| Back | FazBrowse Home | New Git URL |
0 commit comments