Skip to content

Commit

Permalink
Allow for .bids-validator-config.json filename
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yarikoptic committed Sep 6, 2024
1 parent 2a391d3 commit 2538051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/datalad/hooks/pre-receive
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2538051

Please sign in to comment.