Skip to content

Commit

Permalink
Merge pull request #98 from PeterDaveHello/valid-commit-id
Browse files Browse the repository at this point in the history
  • Loading branch information
notatestuser authored Nov 6, 2017
2 parents 9a756f9 + 20ee383 commit c484d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commit.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports = class Commit
lines = text.split "\n"
while lines.length
id = _.last lines.shift().split(" ")
break if !id
break if !/^[a-f0-9]{40}$/.test(id)
tree = _.last lines.shift().split(" ")

parents = []
Expand Down

0 comments on commit c484d36

Please sign in to comment.