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:
parent
e322373dca
commit
d7addbe44c
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user