From b9db687222aba42ee5e5922cf02eafecd8c462c8 Mon Sep 17 00:00:00 2001 From: Mike Murkovic Date: Sun, 14 Oct 2018 19:08:01 -0400 Subject: [PATCH] Previous git command did not work on Windows Also author's summary/details were not created because of a URL bug --- lib/git_stats/git_data/repo.rb | 2 +- lib/git_stats/stats_view/view.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git_stats/git_data/repo.rb b/lib/git_stats/git_data/repo.rb index a9eb670983..90f0cd0d19 100644 --- a/lib/git_stats/git_data/repo.rb +++ b/lib/git_stats/git_data/repo.rb @@ -46,7 +46,7 @@ def authors 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 d99dd00509..e438491bd1 100644 --- a/lib/git_stats/stats_view/view.rb +++ b/lib/git_stats/stats_view/view.rb @@ -28,7 +28,7 @@ def render_authors 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