Epic: Gitlab configuration with default values

This commit is contained in:
Dmitriy Zaporozhets 2012-07-02 21:51:48 +03:00
parent b3a0ee8e63
commit 9b337b8328
25 changed files with 147 additions and 45 deletions

View file

@ -68,7 +68,7 @@ module Repository
end
def path_to_repo
File.join(GIT_HOST["base_path"], "#{path}.git")
File.join(Gitlab.config.git_base_path, "#{path}.git")
end
def update_repository
@ -141,4 +141,12 @@ module Repository
file_path
end
def ssh_url_to_repo
url_to_repo
end
def http_url_to_repo
http_url = [Gitlab.config.url, "/", path, ".git"].join()
end
end