Skip to content
Snippets Groups Projects
Commit 7bb71bb0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix stubbed repo

parent 458631c5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -24,11 +24,11 @@ class Repository
end
 
def method_missing(m, *args, &block)
@raw_repository.send(m, *args, &block)
raw_repository.send(m, *args, &block)
end
 
def respond_to?(method)
return true if @raw_repository.respond_to?(method)
return true if raw_repository.respond_to?(method)
 
super
end
Loading
Loading
Loading
Loading
@@ -10,7 +10,7 @@ class Project
if path == "empty" || !path
nil
else
GitLabTestRepo.new(path_with_namespace)
GitLabTestRepo.new(Rails.root.join('tmp', 'repositories', 'gitlabhq'), 'master')
end
end
 
Loading
Loading
@@ -39,11 +39,7 @@ class MergeRequest
end
end
 
class GitLabTestRepo < Gitlab::Git::Repository
def repo
@repo ||= Grit::Repo.new(Rails.root.join('tmp', 'repositories', 'gitlabhq'))
end
class GitLabTestRepo < Repository
# patch repo size (in mb)
def size
12.45
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment