summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-16 16:09:07 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-16 16:09:07 +0200
commitbb24f67e64b4ebe11c4d3ce7df021a6ad7ca98f2 (patch)
tree391ba27fa04e7d6ef65fb7d371b07475eb4263c6 /lib/git/refs.py
parent919164df96d9f956c8be712f33a9a037b097745b (diff)
downloadgitpython-bb24f67e64b4ebe11c4d3ce7df021a6ad7ca98f2.tar.gz
Fixed object bug that would cause object ids not to be resolved to sha's as this was assumed - now there is a test for it as well
repo: removed diff and commit_diff methods, added 'head' property returning the current head as Reference object
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 a4d7bbb1..4445f252 100644
--- a/lib/git/refs.py
+++ b/lib/git/refs.py
@@ -72,7 +72,7 @@ class Reference(LazyMixin, Iterable):
"""
# have to be dynamic here as we may be a tag which can point to anything
# Our path will be resolved to the hexsha which will be used accordingly
- return Object(self.repo, self.path)
+ return Object.new(self.repo, self.path)
@classmethod
def iter_items(cls, repo, common_path = "refs", **kwargs):