1
0
mirror of https://github.com/danog/gift.git synced 2024-11-26 20:04:47 +01:00

Update commit.coffee

This commit is contained in:
Daniil Gentili 2020-08-22 21:26:18 +02:00 committed by GitHub
parent 0694f131c8
commit e3714febe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,8 +101,8 @@ module.exports = class Commit
gpgsig.push lines.shift().replace /^gpgsig /, '' gpgsig.push lines.shift().replace /^gpgsig /, ''
while !/^ -----END PGP SIGNATURE-----$/.test lines[0] while !/^ -----END PGP SIGNATURE-----$/.test lines[0]
gpgsig.push lines.shift() gpgsig.push lines.shift()
if lines[0] != ''
gpgsig.push lines.shift() gpgsig.push lines.shift()
if lines[0] == ' '
gpgsig.push lines.shift() gpgsig.push lines.shift()
# if converted from mercurial gpgsig may be present with non-valid gpg lines # if converted from mercurial gpgsig may be present with non-valid gpg lines