]> git.ipfire.org Git - thirdparty/git.git/commit - bundle.h
bundle-uri: quiet failed unbundlings
authorDerrick Stolee <derrickstolee@github.com>
Wed, 12 Oct 2022 12:52:38 +0000 (12:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Oct 2022 16:13:25 +0000 (09:13 -0700)
commit70334fc3ebf1c6199014d82bbbf0595b64a8fa90
tree8c4fa2ad3639510f5b90259f48f23c5853eb308d
parent89bd7fedf947484da08e2722d663fdac23a431be
bundle-uri: quiet failed unbundlings

When downloading a list of bundles in "all" mode, Git has no
understanding of the dependencies between the bundles. Git attempts to
unbundle the bundles in some order, but some may not pass the
verify_bundle() step because of missing prerequisites. This is passed as
error messages to the user, even when they eventually succeed in later
attempts after their dependent bundles are unbundled.

Add a new VERIFY_BUNDLE_QUIET flag to verify_bundle() that avoids the
error messages from the missing prerequisite commits. The method still
returns the number of missing prerequisit commits, allowing callers to
unbundle() to notice that the bundle failed to apply.

Use this flag in bundle-uri.c and test that the messages go away for
'git clone --bundle-uri' commands.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bundle.c
bundle-uri.c
bundle.c
bundle.h
t/t5558-clone-bundle-uri.sh