mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-10-15 09:58:04 +00:00
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 <ramperi@google.com> Reviewed-by: Sam Saccone <samccone@google.com> Reviewed-by: Arif Kasim <arifkasim@google.com> Commit-Queue: Ram Peri <ramperi@google.com>
This commit is contained in:
1 parent
2908f596c5
commit
9066409c2d
1 file changed
+2
-3
+2
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user