Break from loop when file is found

This commit is contained in:
Erik Johnson 2016-08-05 14:08:24 -05:00
parent 6764a88601
commit e05648cc2d

View file

@ -1417,6 +1417,7 @@ class Pygit2(GitProvider):
else:
oid = tree[path].oid
blob = self.repo[oid]
break
except KeyError:
blob = None
break