Skip to content

Commit 03097c7

Browse files
committed
Fixed NameError
1 parent 0b820e6 commit 03097c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/refs/reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def require_remote_ref_path(func):
1818
"""A decorator raising a TypeError if we are not a valid remote, based on the path"""
1919
def wrapper(self, *args):
2020
if not self.path.startswith(self._remote_common_path_default + "/"):
21-
raise ValueError("ref path does not point to a remote reference: %s" % path)
21+
raise ValueError("ref path does not point to a remote reference: %s" % self.path)
2222
return func(self, *args)
2323
#END wrapper
2424
wrapper.__name__ = func.__name__

0 commit comments

Comments
 (0)