-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
FileInfoExtractor#getFilePathFromDiffPattern(String) checks for the group pattern '+++ b/path/to/file' within the git diff result in order to get the file path. However, when a new and also empty file is added in between the commit range to analysis, the file will appear in the git diff result, but since there are no lines to display, the above group does not get printed, thus FileInfoExtractor#getFilePathFromDiffPattern(String) is unable to match the pattern, causing the program to crash. Let's add a check to skip these new and empty files in the git diff result, since an empty file has no lines to attribute any contribution.
- Loading branch information
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters