通过url识别project
This commit is contained in:
parent
74fd461fac
commit
98bd46ceb4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue