1
0
mirror of https://github.com/danog/gift.git synced 2025-01-22 05:51:18 +01:00

dont crash when the skip is set too high

This commit is contained in:
sentientwaffle 2012-02-16 15:14:12 -07:00
parent e322373dca
commit d7addbe44c

View File

@ -63,6 +63,7 @@ module.exports = class Commit
lines = text.split "\n"
while lines.length
id = _.last lines.shift().split(" ")
break if !id
tree = _.last lines.shift().split(" ")
parents = []