diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-01 14:39:19 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-01 14:39:19 +0300 |
commit | 22817398e6c1cf9a479fecd99c55369fd81717cb (patch) | |
tree | 6c385da37d215a2d1de9fe25383da996fecc2d55 /lib/gitlab/git | |
parent | 7bb71bb088e17578482e7f934147b0fd11c7ad0e (diff) | |
download | gitlab-ce-22817398e6c1cf9a479fecd99c55369fd81717cb.tar.gz |
define TestEnv and keep all global stubs in one place
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r-- | lib/gitlab/git/repository.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 53d9c735787..30344a3dec5 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -34,7 +34,11 @@ module Gitlab end def path_to_repo - @path_to_repo ||= File.join(Gitlab.config.gitlab_shell.repos_path, "#{path_with_namespace}.git") + @path_to_repo ||= File.join(repos_path, "#{path_with_namespace}.git") + end + + def repos_path + Gitlab.config.gitlab_shell.repos_path end def repo |