summaryrefslogtreecommitdiff
path: root/lib/git/index
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/index')
-rw-r--r--lib/git/index/__init__.py2
-rw-r--r--lib/git/index/base.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/index/__init__.py b/lib/git/index/__init__.py
index 13f874b0..fe4a7f59 100644
--- a/lib/git/index/__init__.py
+++ b/lib/git/index/__init__.py
@@ -1,4 +1,4 @@
-"""Initialize the index module"""
+"""Initialize the index package"""
from base import *
from typ import * \ No newline at end of file
diff --git a/lib/git/index/base.py b/lib/git/index/base.py
index 4b3197a2..0f02352f 100644
--- a/lib/git/index/base.py
+++ b/lib/git/index/base.py
@@ -1122,7 +1122,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable):
# item. Handle existing -R flags properly. Transform strings to the object
# so that we can call diff on it
if isinstance(other, basestring):
- other = Object.new(self.repo, other)
+ other = self.repo.rev_parse(other)
# END object conversion
if isinstance(other, Object):