bug fix in repository.diff

This commit is contained in:
Santiago Perez De Rosso 2015-03-31 13:49:39 -04:00
parent da98890bd1
commit 99e1cad393

@ -381,14 +381,12 @@ class Repository(_Repository):
try:
obj = obj.peel(Blob)
except Exception:
pass
# And if that failed, try to get a tree, raising a type
# error if that still doesn't work
try:
obj = obj.peel(Tree)
except Exception:
raise TypeError('unexpected "%s"' % type(obj))
# And if that failed, try to get a tree, raising a type
# error if that still doesn't work
try:
obj = obj.peel(Tree)
except Exception:
raise TypeError('unexpected "%s"' % type(obj))
return obj