mirror of
https://github.com/tomgi/git_stats.git
synced 2025-01-03 11:12:11 +01:00
Previous git command did not work on Windows
Also author's summary/details were not created because of a URL bug
This commit is contained in:
parent
6a8078b14a
commit
b9db687222
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ module GitStats
|
||||||
end
|
end
|
||||||
|
|
||||||
def commits
|
def commits
|
||||||
@commits ||= run_and_parse("git rev-list --pretty=format:'%H|%at|%ai|%aE' #{commit_range} #{tree_path} | grep -v commit").map do |commit_line|
|
@commits ||= run_and_parse("git rev-list --pretty=format:%h^|%at^|%ai^|%aE #{commit_range} #{tree_path} | grep -v commit").map do |commit_line|
|
||||||
Commit.new(
|
Commit.new(
|
||||||
repo: self,
|
repo: self,
|
||||||
sha: commit_line[:sha],
|
sha: commit_line[:sha],
|
||||||
|
|
|
@ -28,7 +28,7 @@ module GitStats
|
||||||
output = Template.new(template, @layout).render(@view_data,
|
output = Template.new(template, @layout).render(@view_data,
|
||||||
author: author,
|
author: author,
|
||||||
links: links,
|
links: links,
|
||||||
active_page: "/authors/#{author.dirname}/#{template}")
|
active_page: "authors/#{author.dirname}/#{template}")
|
||||||
write(output, "#@out_path/authors/#{author.dirname}/#{template}.html")
|
write(output, "#@out_path/authors/#{author.dirname}/#{template}.html")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue