diff --git a/lib/git_stats/git_data/repo.rb b/lib/git_stats/git_data/repo.rb index a9eb67098..90f0cd0d1 100644 --- a/lib/git_stats/git_data/repo.rb +++ b/lib/git_stats/git_data/repo.rb @@ -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], diff --git a/lib/git_stats/stats_view/view.rb b/lib/git_stats/stats_view/view.rb index d99dd0050..e438491bd 100644 --- a/lib/git_stats/stats_view/view.rb +++ b/lib/git_stats/stats_view/view.rb @@ -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