X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/8bbb07a1bc5db944ba95fa5951ed40c3c1b968aa..d3ecf2f4bc9b937b653b09f8f4fb5e4917b0d312:/bin/pre-commit-hook?ds=inline diff --git a/bin/pre-commit-hook b/bin/pre-commit-hook index aa60ccb..713cb6f 100755 --- a/bin/pre-commit-hook +++ b/bin/pre-commit-hook @@ -16,7 +16,9 @@ else end def is_valid_subscription?(content) - content.length != 0 && YAML.load(content) + content.length != 0 && + content.start_with?("---\n") && + YAML.load(content) end def is_valid_subscription_file?(file)