Skip to content

Commit 6cf8633

Browse files
committed
fix: Use fnmatch instead.
1 parent bcdcccd commit 6cf8633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def _included_paths(self) -> List[Tuple[str, str]]:
592592
paths += self.items(section)
593593
elif keyword == "hasconfig:remote.*.url":
594594
for remote in self._repo.remotes:
595-
if fnmatch.fnmatch(remote.url, value):
595+
if fnmatch.fnmatchcase(remote.url, value):
596596
paths += self.items(section)
597597
break
598598
return paths

0 commit comments

Comments
 (0)