Index: svnadmin/hooks/scripts/vulnxml-unique.sh =================================================================== --- svnadmin/hooks/scripts/vulnxml-unique.sh +++ svnadmin/hooks/scripts/vulnxml-unique.sh @@ -28,12 +28,22 @@ head/security/vuxml/vuln.xml) VULN_XML=1 ;; + branches/*/security/vuxml/vuln.xml) + if [ ${type} != 'A' ]; then + VULN_XML=2 + fi + ;; *) OTHER=1 ;; esac done +if [ $VULN_XML -eq 2 ]; then + echo "Commits to security/vuxml/vuln.xml are only allowed on HEAD" 1>&2 + exit 1 +fi + # yell if [ $VULN_XML -gt 0 -a $OTHER -gt 0 ] ; then echo "Commit to security/vuxml/vuln.xml first, and then other files" 1>&2