diff options
author | Josip Sokcevic <sokcevic@chromium.org> | 2024-12-18 18:37:41 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-12-18 11:49:17 -0800 |
commit | 61224d01fa29bcf54dd6d521e09e09a8c0da77fe (patch) | |
tree | 13111a04bf646dd8041fb50f87e33488cd45a4e3 | |
parent | 13d6588bf60f0980ffa3d178441fa707655fee95 (diff) | |
download | git-repo-61224d01fa29bcf54dd6d521e09e09a8c0da77fe.tar.gz |
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.
R=ddoman@google.com
Bug: b/377567091
Change-Id: I77205b1f2df19891597347d55283a617de3c6634
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/446201
Reviewed-by: Scott Lee <ddoman@google.com>
Tested-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
-rw-r--r-- | subcmds/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 7c4c468a..175748a6 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -1831,7 +1831,7 @@ later is required to fix a server side protocol bug. | |||
1831 | 1831 | ||
1832 | self._fetch_times = _FetchTimes(manifest) | 1832 | self._fetch_times = _FetchTimes(manifest) |
1833 | self._local_sync_state = LocalSyncState(manifest) | 1833 | self._local_sync_state = LocalSyncState(manifest) |
1834 | if not opt.local_only: | 1834 | if not opt.local_only and not opt.repo_upgraded: |
1835 | with multiprocessing.Manager() as manager: | 1835 | with multiprocessing.Manager() as manager: |
1836 | with ssh.ProxyManager(manager) as ssh_proxy: | 1836 | with ssh.ProxyManager(manager) as ssh_proxy: |
1837 | # Initialize the socket dir once in the parent. | 1837 | # Initialize the socket dir once in the parent. |