mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 07:18:31 +01:00
git: fix mypy errors (#5073)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user