summaryrefslogtreecommitdiff
path: root/git/diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/diff.py')
-rw-r--r--git/diff.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/git/diff.py b/git/diff.py
index 4024776d..1e2ee740 100644
--- a/git/diff.py
+++ b/git/diff.py
@@ -143,8 +143,6 @@ class Diffable(object):
if hasattr(self, 'Has_Repo'):
self.repo: Repo = self.repo
- else:
- raise AttributeError("No repo member found, cannot create DiffIndex")
diff_cmd = self.repo.git.diff
if other is self.Index: