mirror of
https://github.com/danog/gift.git
synced 2024-11-26 20:04:47 +01:00
Merge pull request #98 from PeterDaveHello/valid-commit-id
This commit is contained in:
commit
c484d36dd6
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user