修复新注册用户不能fork的问题
This commit is contained in:
parent
d48c2a36fc
commit
5f35e8bd97
|
@ -102,7 +102,8 @@ class RepositoriesController < ApplicationController
|
|||
g = Gitlab.client
|
||||
if User.current.gid.nil?
|
||||
begin
|
||||
g.sync_user(User.current)
|
||||
s = Trustie::Gitlab::Sync.new
|
||||
s.sync_user(User.current)
|
||||
ensure
|
||||
logger.error "Synv user failed ==>#{User.current.id}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue