diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 6fd1a1f2..35791c02 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -261,17 +261,17 @@ def each_cat_file_header(data) def tag_data(name) sha = sha.to_s tdata = command_lines('cat-file', 'tag', name) - process_tag_data(tdata, name, 0) + process_tag_data(tdata, name) end - def process_tag_data(data, name, indent=4) + def process_tag_data(data, name) hsh = { 'name' => name } each_cat_file_header(data) do |key, value| hsh[key] = value end - hsh['message'] = data.collect {|line| line[indent..-1]}.join("\n") + "\n" + hsh['message'] = data.join("\n") + "\n" return hsh end