Why is stash linking wrong user to commits?

I have created repository in stash. I pushed an existing repository to it. Now Stash has linked the wrong user to the commits.

I am the main committer on the repository. My git user.name matches my stash users full name. My git user.email matches my stash users email.

No other users in stash have the same full name or email as me.

But whenever I push the repository it always shows the commits as a different user. Why? How do I get stash to link my user to the commits? 

3 answers

1 accepted

2 votes
Answer accepted

There was a user with duplicate email in internal user directory. Seems stash takes the first user with matching email. Could be nice if they match on user name also.

Thanks for your feedback! I've updated your comment on our KB below: https://confluence.atlassian.com/display/STASHKB/Commit+in+Stash+shows+a+different+username+than+the+one+that+pushes+the+code - Thiago Bomfim

Is it possibly because I have the same email but on different users in the commit logs? Author: Timothy Harris <tim@praqma.net> Date: Sat Jan 31 13:09:25 2015 +0100 AG-150: nothing really commit 4aad389d6c7095b5789aa7161dab16c572a25206 Author: Timothy Harris <tim@praqma.net> Date: Sat Jan 31 12:15:14 2015 +0100 AG-150: ignore idea files commit dc27ef98d263a41b74944ebad254c17a86fafbcb Author: EXT.Tim.Harris <tim@praqma.net> Date: Fri Jan 30 15:12:53 2015 +0100 AG-150 Create a defect cloner type. Started script to transition defect based on cloned defect status. NOT Fully working yet...

EXT.Tim.Harris does not exist in Stash

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

265 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you