mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 05:22:16 +01:00
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:
parent
c106d20935
commit
1608a43e8d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue