Commit 7bb71bb0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix stubbed repo

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