diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-19 12:35:06 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-19 12:35:06 -0500 |
commit | d5b6dddce2ae5820091f1dcb7f04d10b855556cd (patch) | |
tree | 3c0bad64ea7fde9e9c5c76c97e1a5afc8bf835d2 | |
parent | f12400ed4d4fa84484a07489446c9aebaad5bdb5 (diff) | |
download | b4-d5b6dddce2ae5820091f1dcb7f04d10b855556cd.tar.gz |
ez: fix minor off-by-one in Date header generation
When we generate patches, we set the Date: header to increment by one
second with each consecutive patch. Start this counting with +1 to the
series timestamp, to make sure that the cover letter is one second
earlier than the first patch.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py index ae8f078..428a8eb 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -2906,7 +2906,7 @@ def git_range_to_patches(gitdir: Optional[str], start: str, end: str, msg.replace_header('From', setfrom) if seriests: - patchts = seriests + counter + patchts = seriests + counter + 1 origdate = msg.get('Date') if origdate: msg.replace_header('Date', email.utils.formatdate(patchts, localtime=True)) |