diff --git a/services/datalad/hooks/pre-receive b/services/datalad/hooks/pre-receive index 9b6a25e16..8ca102f45 100755 --- a/services/datalad/hooks/pre-receive +++ b/services/datalad/hooks/pre-receive @@ -129,19 +129,15 @@ function main() { bidsignore="" fi - # For raw datasets, do not include dataset_description - # For derivative datasets, include with 0000 separator - # Once the shift to the schema validator is complete, this distinction can go away. - local dataset_description=$(git show "${newref}:dataset_description.json") - if [ -n "$(echo ${dataset_description} | grep DatasetType.*derivative )" ]; then - dataset_description="$dataset_description\n0000\n" - else - dataset_description="" - fi + # Run validation with bidsschematools + python -m bidsschematools pre-receive-hook <