From 9066409c2ddc24bbd2405f66e3358d479a17038f Mon Sep 17 00:00:00 2001 From: Ram Peri Date: Thu, 24 Sep 2026 19:53:57 +0000 Subject: [PATCH] init: don't suggest --no-use-superproject on failure When the superproject can't be fetched, repo init warns and tells users to re-run repo init with --no-use-superproject. That choice is saved in the checkout config (repo.superproject), so following it disables the superproject for that checkout until it is re-inited, even though these failures are often transient. Drop the recommendation and keep the rest of the warning. This is the repo init counterpart of reverting https://gerrit-review.googlesource.com/c/git-repo/+/305622 for repo sync (https://gerrit-review.googlesource.com/c/git-repo/+/634804). Bug: 565845573 Change-Id: I91a6e682ef1d1c6dee07bc7969de88a681e1d239 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/634784 Tested-by: Ram Peri Reviewed-by: Sam Saccone Reviewed-by: Arif Kasim Commit-Queue: Ram Peri --- project.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/project.py b/project.py index a2786e4b5..8430385aa 100644 --- a/project.py +++ b/project.py @@ -6187,9 +6187,8 @@ class ManifestProject(MetaProject): logger.warning( "warning: git update of superproject %s failed, " "repo sync will not use superproject to fetch source; " - "while this error is not fatal, and you can continue to " - "run repo sync, please run repo init with the " - "--no-use-superproject option to stop seeing this warning", + "this error is not fatal, and you can continue to " + "run repo sync", submanifest, ) if sync_result.fatal and use_superproject is not None: