git: fix mypy errors (#5073)

This commit is contained in:
Peter Rowlands (변기호)
2020-12-10 18:51:26 +09:00
committed by GitHub
parent e0884df99c
commit 9967d52885
3 changed files with 6 additions and 8 deletions
+1 -3
View File
@@ -408,9 +408,7 @@ class GitPythonBackend(BaseGitBackend): # pylint:disable=abstract-method
from git import Reference
for ref in Reference.iter_items(self.repo, common_path=base):
if base and base.endswith("/"):
base = base[:-1]
yield "/".join([base, ref.name])
yield ref.path
def iter_remote_refs(self, url: str, base: Optional[str] = None):
raise NotImplementedError