Skip to contentSkip to conversation

Don't keep old committer when rewriting a commit

PATCH New Karl Hasselström 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't keep old committer when rewriting a commit

---

I think this is what the old infrastructure does too.

 stgit/lib/transaction.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
stgit/lib/transaction.py +1 -0
index a60c5ff..809eabf 100644
@@ -176,6 +176,7 @@ class StackTransaction(object):
         conflicts to them."""
         i = self.unapplied.index(pn)
         cd = self.patches[pn].data
+        cd = cd.set_committer(None)
         s = ['', ' (empty)'][cd.is_nochange()]
         oldparent = cd.parent
         cd = cd.set_parent(self.__head)