summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2023-08-22 01:24:46 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-22 17:18:13 +0000
commit16109a66b705211efd25f434201d113628aff04c (patch)
treefede640aae0b6a485cf71c2b9fd315a53673b613 /subcmds/sync.py
parent321b7934b5e8e316b7fa4dc306e055d3d6d351ff (diff)
downloadgit-repo-16109a66b705211efd25f434201d113628aff04c.tar.gz
upload: Suggest full sync if hooks fail with partially synced tree
Pre-upload hooks may fail because of partial syncs. Bug: b/271507654 Change-Id: I124cd386c5af2c34e1dcaa3e86916624e235b1e3 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/383474 Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com> Tested-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index bbe03722..159771eb 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -1696,7 +1696,7 @@ later is required to fix a server side protocol bug.
1696 ) 1696 )
1697 1697
1698 self._fetch_times = _FetchTimes(manifest) 1698 self._fetch_times = _FetchTimes(manifest)
1699 self._local_sync_state = _LocalSyncState(manifest) 1699 self._local_sync_state = LocalSyncState(manifest)
1700 if not opt.local_only: 1700 if not opt.local_only:
1701 with multiprocessing.Manager() as manager: 1701 with multiprocessing.Manager() as manager:
1702 with ssh.ProxyManager(manager) as ssh_proxy: 1702 with ssh.ProxyManager(manager) as ssh_proxy:
@@ -1932,7 +1932,7 @@ class _FetchTimes(object):
1932 platform_utils.remove(self._path, missing_ok=True) 1932 platform_utils.remove(self._path, missing_ok=True)
1933 1933
1934 1934
1935class _LocalSyncState(object): 1935class LocalSyncState(object):
1936 _LAST_FETCH = "last_fetch" 1936 _LAST_FETCH = "last_fetch"
1937 _LAST_CHECKOUT = "last_checkout" 1937 _LAST_CHECKOUT = "last_checkout"
1938 1938