summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/refs.py')
-rw-r--r--lib/git/refs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/refs.py b/lib/git/refs.py
index 52e128b5..b032285f 100644
--- a/lib/git/refs.py
+++ b/lib/git/refs.py
@@ -208,7 +208,7 @@ class Reference(LazyMixin, Iterable):
# our path on demand - due to perstent commands it is fast.
# This reduces the risk that the object does not match
# the changed ref anymore in case it changes in the meanwhile
- return cls(repo, full_path)
+ return cls.from_path(repo, full_path)
# obj = get_object_type_by_name(type_name)(repo, hexsha)
# obj.size = object_size