mirror of
https://github.com/git/git.git
synced 2026-04-10 17:00:09 +02:00
list-objects-filter: give a more specific error sparse parsing error
The sparse:oid filter has two error modes: we might fail to resolve the name to an OID, or we might fail to parse the contents of that OID. In the latter case, let's give a less generic error message, and mention the OID we did find. While we're here, let's also mark both messages as translatable. Signed-off-by: Jeff King <peff@peff.net> Acked-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
4c96a77594
commit
cf34337f98
@@ -274,7 +274,7 @@ test_expect_success 'partial clone with unresolvable sparse filter fails cleanly
|
||||
test_must_fail git clone --no-local --bare \
|
||||
--filter=sparse:oid=master \
|
||||
sparse-src dst.git 2>err &&
|
||||
test_i18ngrep "could not load filter specification" err
|
||||
test_i18ngrep "unable to parse sparse filter data in" err
|
||||
'
|
||||
|
||||
. "$TEST_DIRECTORY"/lib-httpd.sh
|
||||
|
||||
Reference in New Issue
Block a user