diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-16 11:05:31 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-16 11:06:12 +0100 |
commit | 9f73e8ba55f33394161b403bf7b8c2e0e05f47b0 (patch) | |
tree | f537d42a36e2424a240bcf4f1a4440e3e3acf4a4 /lib/git/remote.py | |
parent | af5abca21b56fcf641ff916bd567680888c364aa (diff) | |
download | gitpython-9f73e8ba55f33394161b403bf7b8c2e0e05f47b0.tar.gz |
remote: added methods to set and query the tracking branch status of normal heads, including test.
Config: SectionConstraint was updated with additional callable methods, the complete ConfigParser interface should be covered now
Remote: refs methods is much more efficient now as it will set the search path to the directory containing the remote refs - previously it used the remotes/ base directory and pruned the search result
Diffstat (limited to 'lib/git/remote.py')
-rw-r--r-- | lib/git/remote.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/git/remote.py b/lib/git/remote.py index 135e37d7..5124c603 100644 --- a/lib/git/remote.py +++ b/lib/git/remote.py @@ -468,11 +468,7 @@ class Remote(LazyMixin, Iterable): you to omit the remote path portion, i.e.:: remote.refs.master # yields RemoteReference('/refs/remotes/origin/master')""" out_refs = IterableList(RemoteReference._id_attribute_, "%s/" % self.name) - for ref in RemoteReference.list_items(self.repo): - if ref.remote_name == self.name: - out_refs.append(ref) - # END if names match - # END for each ref + out_refs.extend(RemoteReference.list_items(self.repo, remote=self.name)) assert out_refs, "Remote %s did not have any references" % self.name return out_refs |