Skip to content

Commit

Permalink
handle hg converted gpg lines
Browse files Browse the repository at this point in the history
running parse_commits if it included commits converted from mercurial kiln repositories would fail
we can see this in [email protected]:somecallmechief/oj.git by running
git rev-list 07bba --pretty=raw --max-count=1
  • Loading branch information
Connor Turland authored and Connoropolous committed May 1, 2015
1 parent 61d7452 commit 524383b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/commit.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ module.exports = class Commit
while !/^ -----END PGP SIGNATURE-----$/.test lines[0]
gpgsig.push lines.shift()
gpgsig.push lines.shift()


# if converted from mercurial gpgsig may be present with non-valid gpg lines
if /^kilnhgcopies/.test lines[0]
while /^kilnhgcopies/.test lines[0]
lines.shift()

# not doing anything with this yet, but it's sometimes there
if /^encoding/.test lines[0]
encoding = _.last lines.shift().split(" ")
Expand Down

0 comments on commit 524383b

Please sign in to comment.