diff options
author | Darren Hart <dvhart@linux.intel.com> | 2010-12-20 10:42:44 -0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-21 09:29:12 +0000 |
commit | 703148fde646ed8c207880a47be09b683b6f6303 (patch) | |
tree | 4c6f755f528fabdf28541e24cb2a0fa5e9b608ad /scripts/send-pull-request | |
parent | 2d65d832dd811083efdd13b69dbd6f5ba46161b6 (diff) | |
download | openembedded-core-703148fde646ed8c207880a47be09b683b6f6303.tar.gz openembedded-core-703148fde646ed8c207880a47be09b683b6f6303.tar.bz2 openembedded-core-703148fde646ed8c207880a47be09b683b6f6303.tar.xz openembedded-core-703148fde646ed8c207880a47be09b683b6f6303.zip |
send-pull-request: Use current date in mail headers
Some users experience problems viewing the pull requests as a sequential
mail series due to the script using the git commit date for the patches
and today's date for the cover letter.
Address this by renaming the email Date: header to Old-Date: and adding
a new Date: header with a current timestamp.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Reported-by: Gary Thomas <gary@mlbassoc.com>
Cc: Josh Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts/send-pull-request')
-rwxr-xr-x | scripts/send-pull-request | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/send-pull-request b/scripts/send-pull-request index 0576a5dd4..03a78f9b1 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request @@ -118,7 +118,11 @@ if [ "$cont" == "y" ] || [ "$cont" == "Y" ]; then # # Use tail to remove the email envelope from git or formail as # msmtp (sendmail) would choke on them. - cat $PATCH | formail -I "To: $TO" -I "CC: $CC" | tail -n +2 | sendmail -t + # + # Modify the patch date for sequential delivery, but retain the + # original date as "Old-Date". + DATE=$(date +"%a, %d %b %Y %k:%M:%S %z") + cat $PATCH | formail -I "To: $TO" -I "CC: $CC" -i "Date: $DATE" | tail -n +2 | sendmail -t if [ $? -eq 1 ]; then ERROR=1 fi |