通过url识别project

This commit is contained in:
guange 2015-10-18 21:24:59 +08:00
parent 74fd461fac
commit 98bd46ceb4
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ module Redmine
def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil)
super
@g = Gitlab.client
@project = 11
@project = Project.find_by_url(url).gpid
@path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding
end