From d83ade1db59a21b675b6386b94b56eabb90ae83e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 2 Sep 2019 23:42:21 +0900 Subject: Use -z option for git-log --- tool/lib/vcs.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tool/lib') diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 4acc7211be..620ac1bfeb 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -660,14 +660,12 @@ class VCS end def format_changelog(path, arg) - cmd = %W"#{COMMAND} log --topo-order --no-notes" - cmd << "--format=%x00%an%n%at%n%B" + cmd = %W"#{COMMAND} log --topo-order --no-notes -z --format=%an%n%at%n%B" cmd.concat(arg) open(path, 'w') do |w| sep = "-"*72 w.puts sep cmd_pipe(cmd) do |r| - r.getc # skip first NUL while s = r.gets("\0") s.chomp!("\0") author, time, s = s.split("\n", 3) -- cgit v1.2.3