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

View File

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