]> nos-oignons.net Git - gestion-adh.git/blobdiff - bin/pre-commit-hook
Next step in pre-commit hook implementation
[gestion-adh.git] / bin / pre-commit-hook
index aa60ccbe37c0832d938113d5625fec358131ee06..713cb6fa33c1b98a7e615f6aa6e71b4eebec9c18 100755 (executable)
@@ -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)