summaryrefslogtreecommitdiff
path: root/git/refs/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-07-04 23:52:17 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-07-04 23:52:17 +0200
commitda12df95faf27f2d69c9b69391c61b584e16614d (patch)
treeae4f8d724ac857288dec901e080ffb6126d968c9 /git/refs/remote.py
parentb7ae99cd13839036a34aca06078d3431a11829ff (diff)
parent3379127de7642a80687487c41e459e0cee9ec44f (diff)
downloadgitpython-da12df95faf27f2d69c9b69391c61b584e16614d.tar.gz
Merge branch 'remote-fixes'
Diffstat (limited to 'git/refs/remote.py')
-rw-r--r--git/refs/remote.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/git/refs/remote.py b/git/refs/remote.py
index f2dc72ee..d7bfc3e0 100644
--- a/git/refs/remote.py
+++ b/git/refs/remote.py
@@ -12,7 +12,7 @@ class RemoteReference(Head):
"""Represents a reference pointing to a remote head."""
__slots__ = tuple()
- _common_path_default = "refs/remotes"
+ _common_path_default = Head._remote_common_path_default
@classmethod
@@ -24,24 +24,6 @@ class RemoteReference(Head):
# END handle remote constraint
return super(RemoteReference, cls).iter_items(repo, common_path)
- @property
- def remote_name(self):
- """
- :return:
- Name of the remote we are a reference of, such as 'origin' for a reference
- named 'origin/master'"""
- tokens = self.path.split('/')
- # /refs/remotes/<remote name>/<branch_name>
- return tokens[2]
-
- @property
- def remote_head(self):
- """:return: Name of the remote head itself, i.e. master.
- :note: The returned name is usually not qualified enough to uniquely identify
- a branch"""
- tokens = self.path.split('/')
- return '/'.join(tokens[3:])
-
@classmethod
def create(cls, *args, **kwargs):
"""Used to disable this method"""