Commit history - wrong user reference
Summary
We added a new user (UserB) to Gitlab who should be managed by an existing workmate user (UserA). Because we have multiple E-Mail address (like: foobar@abc.com, foo.bar@abc.com) UserA is registered to foo.bar@abc.com and UserB to foobar@abc.com.
UserA has generated a SSH-Key with the email address foobar@abc.com (mistake). The new UserB has generated a new SSH-Key with the email address foobar@abc.com.
Problem
- Now in the history of commits in a project the wrong user (UserB) is displayed.
Miscellaneous
- Merges (like pressing Accept Merge Request) are displayed correct for each user.
- Inside UserAs activities everything is fine.
- Inside UserBs activities everything is fine - he does not have the mistakenly commits.
Decline
Now we have changed the SSH-Key of UserA to be related to foo.bar@abc.com and the problem is gone for new commits but not for the old ones.
Steps to reproduce
I think: Create two users with different SSH-Key but same Email-Address.
Expected behavior
Nothing change in the commit History.
Actual behavior
All commits from UserA are now displayed as commits from UserB.

Possible fixes
Connect commits to profile using ssh-key/user-id but not email-addresses?