diff options
author | LaMont Jones <lamontjones@google.com> | 2022-11-02 22:01:29 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-11-03 23:01:16 +0000 |
commit | fa8d939c8f6a3d25d9a203f28b16a71d891dcc1c (patch) | |
tree | 1d3519d54c1ef256b0acaa19a0d601897a318411 /project.py | |
parent | a6c52f566acfbff5b0f37158c0d33adf05d250e5 (diff) | |
download | git-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
60 | RETRY_JITTER_PERCENT = 0.1 | 60 | RETRY_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 | ||