From 0f3ebfc83cbb79c02bdbd7aecd6786d80873eac3 Mon Sep 17 00:00:00 2001 From: Nell Hardcastle Date: Thu, 14 Nov 2024 08:15:28 -0800 Subject: [PATCH] fix(worker): Avoid .bidsignore fatal warning on push --- services/datalad/hooks/pre-receive | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/datalad/hooks/pre-receive b/services/datalad/hooks/pre-receive index 8ca102f45..fddc74c05 100755 --- a/services/datalad/hooks/pre-receive +++ b/services/datalad/hooks/pre-receive @@ -124,10 +124,7 @@ function main() { filterDotFiles # Check if .bidsignore is in the new tree - local bidsignore=$(git show "${newref}:.bidsignore") - if [[ "$?" != 0 ]]; then - bidsignore="" - fi + local bidsignore=$(git show "${newref}:.bidsignore" 2> /dev/null) # Run validation with bidsschematools python -m bidsschematools pre-receive-hook <