diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-07 21:19:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-09 17:46:25 +0000 |
commit | 326ef69d1296cd35a86d1eaee0741e6fc956af52 (patch) | |
tree | 9e91354627cbdc15f0c7cd9d03f8259bc81a515a /scripts/send-pull-request | |
parent | 4a13766c7b223d82e8cf682db999a135d2b8412c (diff) | |
download | openembedded-core-326ef69d1296cd35a86d1eaee0741e6fc956af52.tar.gz openembedded-core-326ef69d1296cd35a86d1eaee0741e6fc956af52.tar.bz2 openembedded-core-326ef69d1296cd35a86d1eaee0741e6fc956af52.tar.xz openembedded-core-326ef69d1296cd35a86d1eaee0741e6fc956af52.zip |
scripts/send-pull-request: allow sending of patches without a cover letter
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'scripts/send-pull-request')
-rwxr-xr-x | scripts/send-pull-request | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/send-pull-request b/scripts/send-pull-request index be130096c..8d51ce2ec 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request @@ -108,15 +108,18 @@ fi # Verify the cover letter is complete and free of tokens -CL="$PDIR/0000-cover-letter.patch" -for TOKEN in SUBJECT BLURB; do - grep -q "*** $TOKEN HERE ***" "$CL" - if [ $? -eq 0 ]; then - echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')." - exit 1 - fi -done - +if [ -e $PDIR/0000-cover-letter.patch ]; then + CL="$PDIR/0000-cover-letter.patch" + for TOKEN in SUBJECT BLURB; do + grep -q "*** $TOKEN HERE ***" "$CL" + if [ $? -eq 0 ]; then + echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')." + exit 1 + fi + done +else + echo "WARNING: No cover letter will be send." +fi # Harvest emails from the generated patches and populate AUTO_CC. if [ $AUTO_CL -eq 1 ]; then |