Skip to content

Commit

Permalink
dont crash when the skip is set too high
Browse files Browse the repository at this point in the history
  • Loading branch information
sentientwaffle committed Feb 16, 2012
1 parent e322373 commit d7addbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commit.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit d7addbe

Please sign in to comment.