Fix arguments to Project

This commit is contained in:
Vicent Marti 2014-10-02 18:41:15 +02:00
parent 1f5db75546
commit 7ae0ca4976
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class Licensee
]
def initialize(path_or_repo, revision = nil)
if path_or_repo === Rugged::Repository
if path_or_repo.kind_of? Rugged::Repository
@repository = path_or_repo
else
@repository = Rugged::Repository.new(path_or_repo)