build-support/fetchgit: remove assertMsg usage

This commit is contained in:
Eman Resu
2026-05-26 14:11:22 -04:00
parent a944373fa1
commit 661fe16b08
+2 -1
View File
@@ -177,7 +177,8 @@ lib.makeOverridable (
sparseCheckoutText =
# Changed to throw on 2023-06-04
assert (
lib.assertMsg (lib.isList finalAttrs.sparseCheckout) "Please provide directories/patterns for sparse checkout as a list of strings. Passing a (multi-line) string is not supported any more."
lib.isList finalAttrs.sparseCheckout
|| throw "Please provide directories/patterns for sparse checkout as a list of strings. Passing a (multi-line) string is not supported any more."
);
assert finalAttrs.nonConeMode -> (finalAttrs.sparseCheckout != [ ]);
# git-sparse-checkout(1) says: