Don't add duplicate Signed-Off-By signature to amended commit when there is already one
Some projects need (or recommend) to add a Signed-Off-By
signature to your commits. Fortunately, gitg has a handy checkbox that can take care of this. However, when amending a commit which already has this signature, gitg makes a duplicate.
Steps to reproduce:
- Start gitg
- Open a repo
- Make some modifications
- Click Commit
- Check "Add signed-off-by signature"
- Enter commit message
- Commit the change
- Click Commit again
- Check "Amend previous commit"
- Change message
- Commit the change again
Expected result:
There is only one signed-off-by signature
Actual result:
There are now to signed-off-by signatures.