Fix the linguist binary

This commit is contained in:
Vicent Marti
2014-06-26 13:03:30 +02:00
parent 659d27cae5
commit bc34345a56
2 changed files with 5 additions and 1 deletions

View File

@@ -29,6 +29,8 @@ module Linguist
def initialize(repo, commit_oid)
@repository = repo
@commit_oid = commit_oid
raise TypeError, 'commit_oid must be a commit SHA1' unless commit_oid.is_a?(String)
end
# Public: Load the results of a previous analysis on this repository