We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fa5ef commit 0968971Copy full SHA for 0968971
git/objects/base.py
@@ -77,10 +77,14 @@ def _set_cache_(self, attr):
77
78
def __eq__(self, other):
79
""":return: True if the objects have the same SHA1"""
80
+ if not hasattr(other, 'binsha'):
81
+ return False
82
return self.binsha == other.binsha
83
84
def __ne__(self, other):
85
""":return: True if the objects do not have the same SHA1 """
86
87
+ return True
88
return self.binsha != other.binsha
89
90
def __hash__(self):
0 commit comments