GLEP 42 is restrictive on what is allowed as a filename of a news item, see discussion at URL. I suggest that validity of the name is checked in a pre-commit hook.
Created attachment 195821 [details] Proposed bash script for pre-commit hook
Hi Ulrich, thanks for writing this! Can you add: 1) A $Id$ tag 2) A copyright header 3) A line stating who wrote it Thanks!
Created attachment 195849 [details] Proposed bash script for pre-commit hook (In reply to comment #2) > Can you add: > 1) A $Id$ tag > 2) A copyright header > 3) A line stating who wrote it Attached.
Created attachment 196138 [details, diff] Proposed bash script for pre-commit hook Updated version with a small fix for the "bad date" error message. Maybe I should also mention that I've tested the script in a local repository.
This NOT valid bash: if [[ ${file} != [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-+([-a-z0-9+_]).[a-z][a-z].txt?(.asc) ]]
Created attachment 200758 [details] pre-commit hook, take 4 (In reply to comment #5) > This NOT valid bash: > if [[ ${file} != > [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-+([-a-z0-9+_]).[a-z][a-z].txt?(.asc) > ]] I had tested it with bash 3.2.39 and 4.0.24 (and shopt -s extglob). New version using egrep is attached.
Created attachment 200759 [details] pre-commit hook, take 5 The condition has to be inverted of course... take 5 is attached.
Deployed now, thanks for fixing it.