chiark / gitweb /
Fix "stg edit --sign"
authorPavel Roskin <proski@gnu.org>
Sat, 12 Jan 2008 04:58:03 +0000 (23:58 -0500)
committerKarl Hasselström <kha@treskal.com>
Fri, 18 Jan 2008 04:26:22 +0000 (05:26 +0100)
It worked in 0.14, but was broken some time after the release.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/edit.py

index b9699d58ae2c98df458c31a1daaec689325ad42e..2e8ae372490d8d48c2b8a50d5f4945ec5d87c0b3 100644 (file)
@@ -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)