diff options
-rwxr-xr-x | contrib/sendemail-validate | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate index 4ced8107..024506fb 100755 --- a/contrib/sendemail-validate +++ b/contrib/sendemail-validate @@ -13,7 +13,11 @@ trap "rm -rf -- $tmp" EXIT git clone -q --depth=1 "https://git.sr.ht/~rjarry/aerc" "$tmp" || die "Failed to clone upstream repository. No network connection?" export GIT_DIR="$tmp/.git" -git -C "$tmp" am -q3 "$email" || +git -C "$tmp" am -q3 --empty=drop "$email" || die "Failed to apply patch on current upstream master branch. git pull --rebase?" +if ! git -C "$tmp" diff --quiet origin/master; then + # patch is empty (cover letter) + exit 0 +fi make -sC "$tmp" all lint tests check-patches || die "Please fix the above issues and amend your patch." |