diff options
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 7cf303b3..0c0f0cf3 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -470,6 +470,7 @@ later is required to fix a server side protocol bug. | |||
470 | """ | 470 | """ |
471 | start = time.time() | 471 | start = time.time() |
472 | success = False | 472 | success = False |
473 | remote_fetched = False | ||
473 | buf = io.StringIO() | 474 | buf = io.StringIO() |
474 | try: | 475 | try: |
475 | sync_result = project.Sync_NetworkHalf( | 476 | sync_result = project.Sync_NetworkHalf( |
@@ -487,6 +488,7 @@ later is required to fix a server side protocol bug. | |||
487 | clone_filter=project.manifest.CloneFilter, | 488 | clone_filter=project.manifest.CloneFilter, |
488 | partial_clone_exclude=project.manifest.PartialCloneExclude) | 489 | partial_clone_exclude=project.manifest.PartialCloneExclude) |
489 | success = sync_result.success | 490 | success = sync_result.success |
491 | remote_fetched = sync_result.remote_fetched | ||
490 | 492 | ||
491 | output = buf.getvalue() | 493 | output = buf.getvalue() |
492 | if (opt.verbose or not success) and output: | 494 | if (opt.verbose or not success) and output: |
@@ -504,8 +506,7 @@ later is required to fix a server side protocol bug. | |||
504 | raise | 506 | raise |
505 | 507 | ||
506 | finish = time.time() | 508 | finish = time.time() |
507 | return _FetchOneResult(success, project, start, finish, | 509 | return _FetchOneResult(success, project, start, finish, remote_fetched) |
508 | sync_result.remote_fetched) | ||
509 | 510 | ||
510 | @classmethod | 511 | @classmethod |
511 | def _FetchInitChild(cls, ssh_proxy): | 512 | def _FetchInitChild(cls, ssh_proxy): |