From: Pavel Roskin Date: Sat, 12 Jan 2008 04:58:03 +0000 (-0500) Subject: Fix "stg edit --sign" X-Git-Tag: v0.15-rc1~301 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/45c4b2b0e5006620decbddb3c512021f7457640c Fix "stg edit --sign" It worked in 0.14, but was broken some time after the release. Signed-off-by: Pavel Roskin Signed-off-by: Karl Hasselström --- diff --git a/stgit/commands/edit.py b/stgit/commands/edit.py index b9699d5..2e8ae37 100644 --- a/stgit/commands/edit.py +++ b/stgit/commands/edit.py @@ -90,7 +90,11 @@ def __update_patch(pname, text, options): bottom = patch.get_bottom() top = patch.get_top() - message, author_name, author_email, author_date, diff = parse_patch(text) + if text: + (message, author_name, author_email, author_date, diff + ) = parse_patch(text) + else: + message = author_name = author_email = author_date = diff = None out.start('Updating patch "%s"' % pname)