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 882ebb1 commit 9121f62Copy full SHA for 9121f62
git/remote.py
@@ -451,7 +451,7 @@ def __repr__(self):
451
return '<git.%s "%s">' % (self.__class__.__name__, self.name)
452
453
def __eq__(self, other):
454
- return self.name == other.name
+ return isinstance(other, type(self)) and self.name == other.name
455
456
def __ne__(self, other):
457
return not (self == other)
0 commit comments