Issue #3813 invalid

BitBucket assumes I represent another account

Mikael Aksamit
created an issue

Hi,

I have two accounts. One kind of organizational tied to:

info@tickstar.com

And one personal, tied to:

mikael@aksamit.se

If I push commits to BitBucket, the system always identifies me as 'info@tickstar.com', while I am trying to commit as 'mikael@aksamit.se'.

The remote is specified to reflect my personal account:

{{{ c-2ec2ade8-74736162:galaxygateway mikaks$ git remote -v origin https://aksamit@bitbucket.org/tickstar/galaxygateway.git (fetch) origin https://aksamit@bitbucket.org/tickstar/galaxygateway.git (push) }}}

And I also always supply the password to my personal account, not the organizational. So I feel it to be strange that the system even allows me to commit as 'info@tickstar.com'.

To make things even stranger... in my personal account I have a private repository that is not even shared with 'info@tickstar.com', still commits there show up as if they would have been done by 'info@tickstar.com', that doesn't even have read/write access to that repository. In that repository I use the following remote configuration:

{{{ c-2ec2ade8-74736162:galaxygateway mikaks$ git remote -v origin https://aksamit@bitbucket.org/tickstar/galaxygateway.git (fetch) origin https://aksamit@bitbucket.org/tickstar/galaxygateway.git (push) }}}

Please let me know if you believe this is a bug.

Best regards,

Mikael Aksamit

Comments (3)

  1. Nicolas Venegas

    Hi Mikael

    The way Bitbucket resolves which user created a commit is by using the email address used in the Author string of a commit (that is, what "hg log" and "git log" report as the author of a commit).

    If the email matches a validated email address on Bitbucket, we resolve that commit to the user who owns that (unique) email address.

    The user you authenticate as when pushing does not affect things. Using it would be tricky, because you can push commits by multiple authors in one go.

    Regards

    Nicolas

  2. Brodie Rao staff

    To clarify: you probably have your Git user email set to info@tickstar.com on one machine and mikael@aksamit.se on another.

    Try running "git config user.email" on all of your machines. When you find the offending one, run "git config --global user.email mikael@aksamit.se".

  3. Log in to comment