mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Fix StopIteration exception during repo {sync,status}
If we run out of entries next() will throw StopIteration. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
7542d664de
commit
02dbb6d120
@ -920,8 +920,11 @@ class Project(object):
|
||||
if out:
|
||||
out = iter(out[:-1].split('\0'))
|
||||
while out:
|
||||
try:
|
||||
info = out.next()
|
||||
path = out.next()
|
||||
except StopIteration:
|
||||
break
|
||||
|
||||
class _Info(object):
|
||||
def __init__(self, path, omode, nmode, oid, nid, state):
|
||||
|
Loading…
Reference in New Issue
Block a user