Skip to content

Git.log() with pretty option returns email ids instead of their names. #863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HEMA-MATHAVAN opened this issue Apr 20, 2019 · 6 comments
Closed

Comments

@HEMA-MATHAVAN
Copy link

The following command returns author and commiter email ids instead of their names.i am using version 2.1.11.

Command
git.log('--pretty=%H %an %cn %s','--before=some_date',filename)

Output
677cdde6477cc92b7779d4239df66d6c8ced7aba
bienvenu%nventure.com
bienvenu%nventure.com
fix 103732, sending unsent messages doesn't set replied/forwarded status on original msg, r/sr=mscott

@HEMA-MATHAVAN
Copy link
Author

guys could someone reply...

@the-c0d3br34k3r
Copy link

the-c0d3br34k3r commented May 8, 2019

It seems to work for me. I'm getting the name of the committer.
What does git log 677cdde6477cc92b7779d4239df66d6c8ced7aba -n 1 look like?``

@HEMA-MATHAVAN
Copy link
Author

This is how it looks, still no author name.

[root@localhost ehan-mozilla]# git log 677cdde6477cc92b7779d4239df66d6c8ced7aba -n 1
commit 677cdde6477cc92b7779d4239df66d6c8ced7aba
Author: bienvenu%nventure.com <bienvenu%nventure.com>
Date: Wed Jul 23 21:53:05 2003 +0000

fix 103732, sending unsent messages doesn't set replied/forwarded status on original msg, r/sr=mscott

@the-c0d3br34k3r
Copy link

the-c0d3br34k3r commented May 20, 2019

This is not an issue with Git or GitPython
Your commit has the email address in both the fields (author name and email ID).
A commit with a proper author name specified, looks like this:

commit ca82a6dff817ec66f44342007202690a93763949
Author: Scott Chacon [email protected]
Date: Mon Mar 17 21:52:11 2008 -0700

changed the version number

@jeking3
Copy link
Contributor

jeking3 commented May 20, 2019

Agreed; someone set their git user.name to their email address in that case (or perhaps never set their git user.name at all).

@jeking3 jeking3 closed this as completed May 20, 2019
@HEMA-MATHAVAN
Copy link
Author

The whole repository gives the same result. i felt the .mailmap file was missing.i have raised a issue there too. Thanks for helping out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants