Skip to content

Commit 61224d0

Browse files
sokcevicGLUCI
authored andcommitted
sync: skip network half on repo upgrade
When repo upgrades itself, it will restart itself and rerun sync command. At that point, we know that network half is already done and we can just proceed with local half. [email protected] Bug: b/377567091 Change-Id: I77205b1f2df19891597347d55283a617de3c6634 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/446201 Reviewed-by: Scott Lee <[email protected]> Tested-by: Josip Sokcevic <[email protected]> Commit-Queue: Josip Sokcevic <[email protected]>
1 parent 13d6588 commit 61224d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subcmds/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ def _ExecuteHelper(self, opt, args, errors):
18311831

18321832
self._fetch_times = _FetchTimes(manifest)
18331833
self._local_sync_state = LocalSyncState(manifest)
1834-
if not opt.local_only:
1834+
if not opt.local_only and not opt.repo_upgraded:
18351835
with multiprocessing.Manager() as manager:
18361836
with ssh.ProxyManager(manager) as ssh_proxy:
18371837
# Initialize the socket dir once in the parent.

0 commit comments

Comments
 (0)