summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-27 22:05:44 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-10-27 22:05:44 +0100
commit764cc6e344bd034360485018eb750a0e155ca1f6 (patch)
treeed414189739791d41eba0685afbe67f3eac98b60 /lib/git/refs.py
parent138aa2b8b413a19ebf9b2bbb39860089c4436001 (diff)
downloadgitpython-764cc6e344bd034360485018eb750a0e155ca1f6.tar.gz
renamed remote_branch to remote_head, improved errror message
Diffstat (limited to 'lib/git/refs.py')
-rw-r--r--lib/git/refs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/refs.py b/lib/git/refs.py
index b032285f..9b089a25 100644
--- a/lib/git/refs.py
+++ b/lib/git/refs.py
@@ -31,7 +31,7 @@ class Reference(LazyMixin, Iterable):
"""
if not path.startswith(self._common_path_default):
- raise ValueError("Cannot instantiate %s Reference from path %s" % ( self.__class__.__name__, path ))
+ raise ValueError("Cannot instantiate %s from path %s" % ( self.__class__.__name__, path ))
self.repo = repo
self.path = path
@@ -622,10 +622,10 @@ class RemoteReference(Head):
return tokens[2]
@property
- def remote_branch(self):
+ def remote_head(self):
"""
Returns
- Name of the remote branch itself, i.e. master.
+ Name of the remote head itself, i.e. master.
NOTE: The returned name is usually not qualified enough to uniquely identify
a branch