summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-08-02 18:14:40 +0100
committerYobmod <yobmod@gmail.com>2021-08-02 18:14:40 +0100
commit9de7310f1a2bfcb90ca5c119321037d5ea97b24e (patch)
treef3601d649df87b4b193e36317d11ad46f0a2610f /git/remote.py
parent481f672baab666d6e2f81e9288a5f3c42c884a8e (diff)
downloadgitpython-9de7310f1a2bfcb90ca5c119321037d5ea97b24e.tar.gz
Minor type fixes
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py
index c141519a..3888506f 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -632,7 +632,7 @@ class Remote(LazyMixin, IterableObj):
as well. This is a fix for the issue described here:
https://github.com/gitpython-developers/GitPython/issues/260
"""
- out_refs: IterableList[RemoteReference] = IterableList(RemoteReference._id_attribute_, "%s/" % self.name)
+ out_refs: IterableList[Reference] = IterableList(RemoteReference._id_attribute_, "%s/" % self.name)
for line in self.repo.git.remote("prune", "--dry-run", self).splitlines()[2:]:
# expecting
# * [would prune] origin/new_branch
@@ -642,7 +642,7 @@ class Remote(LazyMixin, IterableObj):
ref_name = line.replace(token, "")
# sometimes, paths start with a full ref name, like refs/tags/foo, see #260
if ref_name.startswith(Reference._common_path_default + '/'):
- out_refs.append(SymbolicReference.from_path(self.repo, ref_name))
+ out_refs.append(Reference.from_path(self.repo, ref_name))
else:
fqhn = "%s/%s" % (RemoteReference._common_path_default, ref_name)
out_refs.append(RemoteReference(self.repo, fqhn))