#1651 Fix the git blame view when the committer has no name
Merged by pingou. Opened by pingou.
fix_blame_authors  into  master

Download 1651.patch

In the git tree of the linux kernel, the commit febf7ea4bedcd36fba0843db726bba28d22bf89a
has for author Author: <sam@mars.ravnborg.org> which, as you can see,
has no name specified.
This makes pygit2 un-happy and basically makes it crash.

In this commit, we work around the issue by not specifying an user if
the committer did not use one.

:thumbsup:

Just a thought catching Value Error , is it a good practice? Because ValueError can include a lot of other errors too right? Can we not raise a custom exception for this ?

Well, I don't really decide what is raised :) I am catching an exception here, not raising one :)

hahah Looks good to me then :)

rebased

Pull-Request has been merged by pingou

Metadata