diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 64700c71..f12e66d6 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -262,10 +262,10 @@ def each_commit_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, 'message' => '' @@ -279,7 +279,7 @@ def process_tag_data(data, name, indent=4) hsh[key] = value.join(' ') end - hsh['message'] = data.collect {|line| line[indent..-1]}.join("\n") + "\n" + hsh['message'] = data.join("\n") + "\n" return hsh end