git-pair icon indicating copy to clipboard operation
git-pair copied to clipboard

Commit Messages include stale data when amending

Open thechutrain opened this issue 6 years ago • 1 comments

Description

Users may see stale co-author data when amending commit messages in Vim terminal

Steps to reproduce

  1. Make sure you are currently pairing with at least one person
  2. Make a commit
  3. remove all the people you are currently pairing with
  4. git commit --amend

Expected result

You should no longer see stale data in the commit message

Actual result

Previous co-authors were still included in the commit message, although this gets cleaned up by git-pair after you amend your commit message

thechutrain avatar Jun 21 '19 18:06 thechutrain

Possible solution:

  • use the prepare-commit-msg hook to possibly check and possibly clean up "co-authored-by" lines.

thechutrain avatar Jun 21 '19 18:06 thechutrain