mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +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
|
end
|
||||||
|
|
||||||
def lines_count
|
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
|
line[/(\d+) insertions?/, 1].to_i
|
||||||
end.sum
|
end.sum
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue