summaryrefslogtreecommitdiff
path: root/lib/git/objects/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/objects/base.py')
-rw-r--r--lib/git/objects/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/objects/base.py b/lib/git/objects/base.py
index ddd03400..8d6860de 100644
--- a/lib/git/objects/base.py
+++ b/lib/git/objects/base.py
@@ -223,5 +223,5 @@ class IndexObject(Object):
The returned path will be native to the system and contains '\' on windows.
"""
- return join_path_native(self.repo.git.git_dir, self.path)
+ return join_path_native(self.repo.working_tree_dir, self.path)