mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +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
|
||||
|
||||
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(
|
||||
repo: self,
|
||||
sha: commit_line[:sha],
|
||||
|
|
|
@ -28,7 +28,7 @@ module GitStats
|
|||
output = Template.new(template, @layout).render(@view_data,
|
||||
author: author,
|
||||
links: links,
|
||||
active_page: "/authors/#{author.dirname}/#{template}")
|
||||
active_page: "authors/#{author.dirname}/#{template}")
|
||||
write(output, "#@out_path/authors/#{author.dirname}/#{template}.html")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue