From e3714febe31c96fc9b505297184027fab2546d21 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 22 Aug 2020 21:26:18 +0200 Subject: [PATCH] Update commit.coffee --- src/commit.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commit.coffee b/src/commit.coffee index 05891e6..5dc5fe2 100644 --- a/src/commit.coffee +++ b/src/commit.coffee @@ -101,9 +101,9 @@ module.exports = class Commit gpgsig.push lines.shift().replace /^gpgsig /, '' while !/^ -----END PGP SIGNATURE-----$/.test lines[0] gpgsig.push lines.shift() - if lines[0] != '' - gpgsig.push lines.shift() gpgsig.push lines.shift() + if lines[0] == ' ' + gpgsig.push lines.shift() # if converted from mercurial gpgsig may be present with non-valid gpg lines # e.g. "kilnhgcopies646973742F2E6874616363657373 6170702F2E6874616363657373"