diff options
Diffstat (limited to 'tool/lib/vcs.rb')
-rw-r--r-- | tool/lib/vcs.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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) |