Skip to content

Commit 2538051

Browse files
committed
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.
1 parent 2a391d3 commit 2538051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/datalad/hooks/pre-receive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function validateGitAttributes() {
5151
function filterDotFiles() {
5252
local newFiles=$(git diff --stat --name-only --diff-filter=ACMRT ${oldref}..${newref})
5353
for filename in $newFiles; do
54-
if [[ "$filename" = ".bidsignore" ]] || [[ "$filename" =~ ".gitattributes" ]] || [[ "$filename" = ".gitmodules" ]] || [[ "$filename" =~ ^.gitignore|\/\.gitignore ]] || [[ "$filename" =~ ^\.datalad ]]; then
54+
if [[ "$filename" = ".bidsignore" ]] || [ "$filename" = ".bids-validator-config.json" ] || [[ "$filename" =~ ".gitattributes" ]] || [[ "$filename" = ".gitmodules" ]] || [[ "$filename" =~ ^.gitignore|\/\.gitignore ]] || [[ "$filename" =~ ^\.datalad ]]; then
5555
continue
5656
fi
5757
if [[ "$filename" =~ ^\..*|\/\..* ]]; then

0 commit comments

Comments
 (0)