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 410cf1e commit 4786d19Copy full SHA for 4786d19
git/objects/base.py
@@ -84,10 +84,14 @@ def _set_cache_(self, attr):
84
85
def __eq__(self, other):
86
""":return: True if the objects have the same SHA1"""
87
+ if not hasattr(other, 'binsha'):
88
+ return False
89
return self.binsha == other.binsha
90
91
def __ne__(self, other):
92
""":return: True if the objects do not have the same SHA1 """
93
94
+ return True
95
return self.binsha != other.binsha
96
97
def __hash__(self):
0 commit comments