From fa8d939c8f6a3d25d9a203f28b16a71d891dcc1c Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Wed, 2 Nov 2022 22:01:29 +0000 Subject: 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 Tested-by: LaMont Jones --- git_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_config.py') diff --git a/git_config.py b/git_config.py index 98cade32..94378e9a 100644 --- a/git_config.py +++ b/git_config.py @@ -219,8 +219,8 @@ class GitConfig(object): """Set the value(s) for a key. Only this configuration file is modified. - The supplied value should be either a string, - or a list of strings (to store multiple values). + The supplied value should be either a string, or a list of strings (to + store multiple values), or None (to delete the key). """ key = _key(name) -- cgit v1.2.3-54-g00ecf