◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
48 changes: 48 additions & 0 deletions git/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,54 @@ def iter_items(cls, repo):
yield Remote(repo, section[lbound + 1:rbound])
# END for each configuration section

@property
def refs(self):
"""
Expand Down
49 changes: 47 additions & 2 deletions git/test/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
with_rw_repo,
with_rw_and_rw_remote_repo,
fixture,
GIT_DAEMON_PORT
)
from git import (
RemoteProgress,
Expand Down Expand Up @@ -62,7 +63,7 @@ def update(self, op_code, cur_count, max_count=None, message=''):
# check each stage only comes once
op_id = op_code & self.OP_MASK
assert op_id in (self.COUNTING, self.COMPRESSING, self.WRITING)
if op_code & self.WRITING > 0:
if op_code & self.BEGIN > 0:
assert not message, 'should not have message when remote begins writing'
Expand Down Expand Up @@ -568,3 +569,47 @@ def test_uncommon_branch_names(self):
assert res[0].remote_ref_path == 'refs/pull/1/head'
assert res[0].ref.path == 'refs/heads/pull/1/head'
assert isinstance(res[0].ref, Head)
Toggle all file notes Toggle all file annotations