summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-04-07 17:44:37 +0200
committerSebastian Thiel <byronimo@gmail.com>2014-04-07 17:44:37 +0200
commita02e432530336f3e0db8807847b6947b4d9908d8 (patch)
tree88c05a0954cf22432cd870aefbc2db191a9eddda
parent56d5d0c70cf3a914286fe016030c9edec25c3ae0 (diff)
parent70670586e082a9352c3bebe4fb8c17068dd39b4c (diff)
downloadgitpython-a02e432530336f3e0db8807847b6947b4d9908d8.tar.gz
Merge pull request #151 from goerz/patch-1
Fixed undefined variable 'path' in Reference
-rw-r--r--git/refs/reference.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/refs/reference.py b/git/refs/reference.py
index 8cc577a8..09312f70 100644
--- a/git/refs/reference.py
+++ b/git/refs/reference.py
@@ -18,7 +18,7 @@ def require_remote_ref_path(func):
"""A decorator raising a TypeError if we are not a valid remote, based on the path"""
def wrapper(self, *args):
if not self.path.startswith(self._remote_common_path_default + "/"):
- raise ValueError("ref path does not point to a remote reference: %s" % path)
+ raise ValueError("ref path does not point to a remote reference: %s" % self.path)
return func(self, *args)
#END wrapper
wrapper.__name__ = func.__name__