summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-27 19:10:39 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-10-27 19:28:28 +0100
commitef592d384ad3e0ead5e516f3b2c0f31e6f1e7cab (patch)
tree15107f1860a383dd2316ae27bc58999a82e45102 /lib/git/refs.py
parent22757ed7b58862cccef64fdc09f93ea1ac72b1d2 (diff)
downloadgitpython-ef592d384ad3e0ead5e516f3b2c0f31e6f1e7cab.tar.gz
Reference._from_string will now create the appropriate type, not just the type of the actual class. This could result in a symbolic reference returned even though you technically requested a reference - this issue must still be addressed.
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