mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Break from loop when file is found
This commit is contained in:
parent
6764a88601
commit
e05648cc2d
1 changed files with 1 additions and 0 deletions
|
@ -1417,6 +1417,7 @@ class Pygit2(GitProvider):
|
|||
else:
|
||||
oid = tree[path].oid
|
||||
blob = self.repo[oid]
|
||||
break
|
||||
except KeyError:
|
||||
blob = None
|
||||
break
|
||||
|
|
Loading…
Add table
Reference in a new issue