summaryrefslogtreecommitdiff
path: root/lib/git/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-21 21:36:07 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-21 21:36:07 +0200
commitbb509603e8303cd8ada7cfa1aaa626085b9bb6d6 (patch)
treec0f26a03ecaf198c4f54f0bee64ffc5a36398a2b /lib/git/remote.py
parenta4fb3091a75005b047fbea72f812c53d27b15412 (diff)
downloadgitpython-bb509603e8303cd8ada7cfa1aaa626085b9bb6d6.tar.gz
remote.refs now returns an IterableList allowing easier access to the remotes, and conforming it to the way repo returns its references as well
Diffstat (limited to 'lib/git/remote.py')
-rw-r--r--lib/git/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/remote.py b/lib/git/remote.py
index 6a9c0efb..4ecae813 100644
--- a/lib/git/remote.py
+++ b/lib/git/remote.py
@@ -7,7 +7,7 @@
Module implementing a remote object allowing easy access to git remotes
"""
-from git.utils import LazyMixin, Iterable
+from git.utils import LazyMixin, Iterable, IterableList
from refs import RemoteReference
class _SectionConstraint(object):
@@ -121,7 +121,7 @@ class Remote(LazyMixin, Iterable):
Returns
List of RemoteRef objects
"""
- out_refs = list()
+ out_refs = IterableList(RemoteReference._id_attribute_)
for ref in RemoteReference.list_items(self.repo):
if ref.remote_name == self.name:
out_refs.append(ref)