change gitolite backend behaviour to prevent error when config directory removed

This commit is contained in:
randx 2012-09-07 15:36:40 +03:00
parent 79021e674b
commit b994a65fc3
2 changed files with 7 additions and 5 deletions

View file

@ -5,7 +5,7 @@ module Gitlab
class AccessDenied < StandardError; end
def config
@config ||= Gitlab::GitoliteConfig.new
Gitlab::GitoliteConfig.new
end
def set_key key_id, key_content, projects