Message ID | 2517d5cdff57048a13e85b9604957b73b69724c3.camel@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | Couple of b4 trailers issues | expand |
On Wed, Aug 31, 2022 at 11:19:12AM -0600, Vishal Verma wrote: > 1. I get a traceback (attached at the end) if the tree contains > (recent?) merge commits. This patch fixes the splat, but I'm not sure > is the right solution - I didn't spend too much time on understanding > what the parent/commit/end checks were trying to do. Thank you for testing it out. I'll apply a fix shortly. > 2. b4 trailers doesn't seem to respect the ordering from git config > b4.trailer-order That feature was gone for a while, but is now back in a new, chain-of-custody respecting version. It should be in the latest master. -K
diff --git a/b4/ez.py b/b4/ez.py index 8a1b8ed..27dc090 100644 --- a/b4/ez.py +++ b/b4/ez.py @@ -649,7 +649,9 @@ def update_trailers(cmdargs: argparse.Namespace) -> None: prevparent = prevcommit = end = None for line in lines: - commit, parent = line.split() + hlist = line.split() + commit = hlist[0] + parent = hlist[1] if end is None: end = commit