diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-04 23:26:13 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-04 23:26:13 +0200 |
commit | 1ddf05a78475a194ed1aa082d26b3d27ecc77475 (patch) | |
tree | b5727ac49ff7a8ac2a9560cf85de60d60ad10e8f /git/refs/remote.py | |
parent | e9bd04844725661c8aa2aef11091f01eeab69486 (diff) | |
parent | a92ab8028c7780db728d6aad40ea1f511945fc8e (diff) | |
download | gitpython-1ddf05a78475a194ed1aa082d26b3d27ecc77475.tar.gz |
Merge branch 'remote-fixes' into 0.3
Diffstat (limited to 'git/refs/remote.py')
-rw-r--r-- | git/refs/remote.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/git/refs/remote.py b/git/refs/remote.py index b7b07d4b..1d45d23f 100644 --- a/git/refs/remote.py +++ b/git/refs/remote.py @@ -10,7 +10,7 @@ __all__ = ["RemoteReference"] class RemoteReference(Head): """Represents a reference pointing to a remote head.""" - _common_path_default = "refs/remotes" + _common_path_default = Head._remote_common_path_default @classmethod @@ -22,24 +22,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 delete(cls, repo, *refs, **kwargs): """Delete the given remote references. |