From 9267d587273c0f702d04c9c5cb122972f351f3f5 Mon Sep 17 00:00:00 2001 From: Josip Sokcevic Date: Thu, 19 Oct 2023 14:46:11 -0700 Subject: project: Speculative fix for project corruption When a new shared project is added to manifest, there's a short window where objects can be deleted that are used by other projects. To close that window, set preciousObjects during git init. For non-shared projects, repo should correct the state in the same execution instance. Bug: 288102993 Change-Id: I366f524535ac58c820d51a88599ae2108df9ab48 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390234 Commit-Queue: Josip Sokcevic Tested-by: Josip Sokcevic Reviewed-by: Mike Frysinger --- subcmds/sync.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index 8460bcec..48ceb468 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -1129,8 +1129,6 @@ later is required to fix a server side protocol bug. ) project.config.SetString("gc.pruneExpire", "never") else: - if not opt.quiet: - print(f"\r{relpath}: not shared, disabling pruning.") project.config.SetString("extensions.preciousObjects", None) project.config.SetString("gc.pruneExpire", None) -- cgit v1.2.3-54-g00ecf