Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Homakov PUT an update to his own existing public key which included a new user_id. The user_id he used was that of a member of the Rails repository members."

But wouldn't that mean, that the commit would display the username of the user with the `user_id' that he used?



Github displays the username/avatar for a commit based on that commit's Author field, not the user that pushed the changes to the repository.


It's more that they display both. Unlike git core, github actually tracks "push" events to branches (git doesn't care, it only sees commits) as distinct from the commits they contain.

So presumably it would have shown the rails developer pushing a change authored by Homakov.


Git has no real way to track that, only commits. We do track it internally, but AFAIK it's not exposed except through post-receive hooks.


ref changes are tracked in the reflog, but the "pusher" (as opposed to author and committer) isn't.


Ok, I see. Thanks!


GitHub uses the email-field in the commit to connect a user to a commit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: