@@ -2205,9 +2205,22 @@ MAILMAP_INFO = dict()
sobtr = LoreTrailer()
hasmysob = False
if sobtr in btrailers:
+
+ found = False
+ last = True
+ for bltr in btrailers:
+ if not found:
+ found = bltr == sobtr
+ else:
+ if bltr.lname == 'signed-off-by':
+ last = False
+ break
+
# Our own signoff always moves to the bottom of all trailers
- hasmysob = True
- btrailers.remove(sobtr)
+ # if it is the last signoff in the chain.
+ if last:
+ hasmysob = True
+ btrailers.remove(sobtr)
new_trailers = self.followup_trailers
if extras: