From ef4db6b40f2eb4e7598ca434dd80fa5d944257b4 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 30 May 2008 13:37:49 +0200 Subject: [PATCH] modified pre-receive to accept [sound] too --- hooks/alsa-kernel.git/pre-receive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/alsa-kernel.git/pre-receive b/hooks/alsa-kernel.git/pre-receive index c93f308..c88afa7 100755 --- a/hooks/alsa-kernel.git/pre-receive +++ b/hooks/alsa-kernel.git/pre-receive @@ -307,8 +307,9 @@ def do_check_commit(lines): # exit(1) if not lines[6][4:].upper().startswith('[ALSA] ') and \ not lines[6][4:].upper().startswith('ALSA: ') and \ + not lines[6][4:].upper().startswith('[sound] ') and \ not lines[6][4:].upper().startswith('sound: '): - error(lines, 'First log line does not start with "[ALSA] " or "ALSA: " or "SOUND: "\n') + error(lines, 'First log line does not start with "[ALSA] " or "ALSA: " or "[SOUND] " or "SOUND: "\n') fail() lastsigned = '' for line in lines[6:]: -- 2.47.1