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:
Mike Murkovic 2018-10-14 19:08:01 -04:00
parent 6a8078b14a
commit b9db687222
2 changed files with 2 additions and 2 deletions

View file

@ -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],

View file

@ -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