From 2f2151a6e7904ad9cff72c9d2d64947a13bf7818 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Fri, 16 Mar 2007 22:45:43 +0000 Subject: [PATCH 1/1] Add an empty line before signed-off-by Default to the standard convention of having an empty line before the Signed-off line when addign a signature using the --sign option. Signed-off-by: Robin Rosenberg Signed-off-by: Catalin Marinas --- stgit/stack.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stgit/stack.py b/stgit/stack.py index feb77e3..9dd5ec7 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -734,7 +734,12 @@ class Series(StgitObject): committer_email = patch.get_commemail() if sign_str: - descr = '%s\n%s: %s <%s>\n' % (descr.rstrip(), sign_str, + descr = descr.rstrip() + if descr.find("\nSigned-off-by:") < 0 \ + and descr.find("\nAcked-by:") < 0: + descr = descr + "\n" + + descr = '%s\n%s: %s <%s>\n' % (descr, sign_str, committer_name, committer_email) bottom = patch.get_bottom() -- 2.11.0