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
1608a43e8d
commit
c5361bae49
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module GitStats
|
|||
end
|
||||
|
||||
def lines_count
|
||||
@lines_count ||= repo.run("git diff --shortstat `git hash-object -t tree /dev/null` #{self.sha} -- #{repo.tree_path}").lines.map do |line|
|
||||
@lines_count ||= repo.run("git diff --shortstat --no-renames `git hash-object -t tree /dev/null` #{self.sha} -- #{repo.tree_path}").lines.map do |line|
|
||||
line[/(\d+) insertions?/, 1].to_i
|
||||
end.sum
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue