summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2022-11-02 22:01:29 +0000
committerLaMont Jones <lamontjones@google.com>2022-11-03 23:01:16 +0000
commitfa8d939c8f6a3d25d9a203f28b16a71d891dcc1c (patch)
tree1d3519d54c1ef256b0acaa19a0d601897a318411 /project.py
parenta6c52f566acfbff5b0f37158c0d33adf05d250e5 (diff)
downloadgit-repo-fa8d939c8f6a3d25d9a203f28b16a71d891dcc1c.tar.gz
sync: clear preciousObjects when set in error.
If this is a project that is not using object sharing (there is only one copy of the remote project) then clear preciousObjects. To override this for a project, run: git config --replace-all repo.preservePreciousObjects true Change-Id: If3ea061c631c5ecd44ead84f68576012e2c7405c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/350235 Reviewed-by: Jonathan Nieder <jrn@google.com> Tested-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/project.py b/project.py
index b975b72a..9d7476b4 100644
--- a/project.py
+++ b/project.py
@@ -59,7 +59,7 @@ MAXIMUM_RETRY_SLEEP_SEC = 3600.0
59# +-10% random jitter is added to each Fetches retry sleep duration. 59# +-10% random jitter is added to each Fetches retry sleep duration.
60RETRY_JITTER_PERCENT = 0.1 60RETRY_JITTER_PERCENT = 0.1
61 61
62# Whether to use alternates. 62# Whether to use alternates. Switching back and forth is *NOT* supported.
63# TODO(vapier): Remove knob once behavior is verified. 63# TODO(vapier): Remove knob once behavior is verified.
64_ALTERNATES = os.environ.get('REPO_USE_ALTERNATES') == '1' 64_ALTERNATES = os.environ.get('REPO_USE_ALTERNATES') == '1'
65 65