projects
/
gimrr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
398a341
)
git-mr-reply: abort on empty message
author
Frantisek Hrbata
<frantisek@hrbata.com>
Fri, 18 Dec 2020 10:05:24 +0000
(11:05 +0100)
committer
Frantisek Hrbata
<frantisek@hrbata.com>
Fri, 18 Dec 2020 10:05:24 +0000
(11:05 +0100)
Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
git-mr-reply
patch
|
blob
|
history
diff --git
a/git-mr-reply
b/git-mr-reply
index 84d1c154e5c4427a5bbffe45c21aefef90992181..10dc573548db00fa9151bc513e7022485f35c687 100755
(executable)
--- a/
git-mr-reply
+++ b/
git-mr-reply
@@
-79,6
+79,8
@@
On {ad}, {an} wrote:
{b}""".format(an=an, ae=ae, s=subj, mr=mr, rev=rev, ad=ad, b=qbody)
msg = mrlib.editor(msg)
+if not msg:
+ sys.exit("Empty reply. Aborting...")
rv, out, err = mrlib.run(["git", "mr-sendmail"], stdin=msg)