]> code.ossystems Code Review - openembedded-core.git/commitdiff
send-pull-request: fix greedy auto-cc regex
authorDarren Hart <dvhart@linux.intel.com>
Fri, 13 May 2011 21:03:07 +0000 (14:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 May 2011 22:37:08 +0000 (23:37 +0100)
A greedy regular expression caused emails to be harvested from patches
that were quoted in the commit message. Ensure only tags that start at the
beginning of the line are considered for harvesting.

NOTE: users are still responsible for verifying the recipients list and to
      ensure they do not spam people!

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Saul Wold <sgw@linux.intel.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
scripts/send-pull-request

index d265c474c0f8e72e2661c15dd836f1466ca10dee..b294d35bd50395b60d53dd6b749c3bdb2343f7d4 100755 (executable)
@@ -90,7 +90,7 @@ done
 if [ $AUTO -eq 1 ]; then
        harvest_recipients TO "^[Tt][Oo]: *"
        harvest_recipients CC "^[Cc][Cc]: *"
-       harvest_recipients CC "^.*-[Bb][Yy]: *"
+       harvest_recipients CC "^[A-Z][A-Za-z-]*-[Bb][Yy]: *"
 fi
 
 AUTO_TO="$(git config sendemail.to)"