use the --no-rename option to git statistics to match the expected insertions/deletions in spec tests; useful for test success on os x

This commit is contained in:
Neil Spring 2016-11-14 15:21:01 -05:00
parent c106d20935
commit 1608a43e8d

View file

@ -19,7 +19,7 @@ module GitStats
private
def calculate_stat
stat_line = commit.repo.run("git show --shortstat --oneline #{commit.sha} -- #{commit.repo.tree_path}").lines.to_a[1]
stat_line = commit.repo.run("git show --shortstat --oneline --no-renames #{commit.sha} -- #{commit.repo.tree_path}").lines.to_a[1]
if stat_line.blank?
@files_changed = @insertions = @deletions = 0
else