mirror of
https://github.com/danog/gift.git
synced 2024-11-30 04:19:37 +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"
|
lines = text.split "\n"
|
||||||
while lines.length
|
while lines.length
|
||||||
id = _.last lines.shift().split(" ")
|
id = _.last lines.shift().split(" ")
|
||||||
break if !id
|
break if !/^[a-f0-9]{40}$/.test(id)
|
||||||
tree = _.last lines.shift().split(" ")
|
tree = _.last lines.shift().split(" ")
|
||||||
|
|
||||||
parents = []
|
parents = []
|
||||||
|
Loading…
Reference in New Issue
Block a user