From 0d706ac2b56bc35de9a1d681c758df395de1c728 Mon Sep 17 00:00:00 2001 From: alesiong Date: Sat, 4 Aug 2018 09:46:29 +0800 Subject: [PATCH] fix process commit data with gpgsig --- lib/git/lib.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index fc390af5..fe614a67 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -192,6 +192,14 @@ def process_commit_data(data, sha = nil, indent = 4) if key == 'parent' hsh['parent'] << value.join(' ') + elsif key == 'gpgsig' + hsh[key] = value.join(' ') + line = data.shift + while line.start_with? ' ' + hsh[key] << line.strip + line = data.shift + end + data.unshift line else hsh[key] = value.join(' ') end