aboutsummaryrefslogtreecommitdiff
path: root/git/refs/symbolic.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/refs/symbolic.py')
-rw-r--r--git/refs/symbolic.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py
index 8c3689b4..ec31f30c 100644
--- a/git/refs/symbolic.py
+++ b/git/refs/symbolic.py
@@ -64,7 +64,9 @@ class SymbolicReference(object):
return '<git.%s "%s">' % (self.__class__.__name__, self.path)
def __eq__(self, other):
- return self.path == other.path
+ if hasattr(other, 'path'):
+ return self.path == other.path
+ return False
def __ne__(self, other):
return not ( self == other )