From f54e4b449ed7f0dae445d48acc09d8eeb1b39fa7 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 6 Sep 2024 13:14:24 -0400 Subject: [PATCH] Allow for .bids-validator-config.json filename We have a legitimate configuration for (legacy) bids-validation within dataset in .bids-validator-config.json . git push was denied with no specific file mentioned but I guess it is because of that file. --- services/datalad/hooks/pre-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/datalad/hooks/pre-receive b/services/datalad/hooks/pre-receive index acf322743..045695a60 100755 --- a/services/datalad/hooks/pre-receive +++ b/services/datalad/hooks/pre-receive @@ -51,7 +51,7 @@ function validateGitAttributes() { function filterDotFiles() { local newFiles=$(git diff --stat --name-only --diff-filter=ACMRT ${oldref}..${newref}) for filename in $newFiles; do - if [[ "$filename" = ".bidsignore" ]] || [[ "$filename" =~ ".gitattributes" ]] || [[ "$filename" = ".gitmodules" ]] || [[ "$filename" =~ ^.gitignore|\/\.gitignore ]] || [[ "$filename" =~ ^\.datalad ]]; then + if [[ "$filename" = ".bidsignore" ]] || [ "$filename" = ".bids-validator-config.json" ] || [[ "$filename" =~ ".gitattributes" ]] || [[ "$filename" = ".gitmodules" ]] || [[ "$filename" =~ ^.gitignore|\/\.gitignore ]] || [[ "$filename" =~ ^\.datalad ]]; then continue fi if [[ "$filename" =~ ^\..*|\/\..* ]]; then