修复新注册用户不能fork的问题

This commit is contained in:
huang 2016-11-18 16:20:18 +08:00
parent d48c2a36fc
commit 5f35e8bd97
1 changed files with 2 additions and 1 deletions

View File

@ -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