版本库邮箱用户名和trustie不一致的迁移
This commit is contained in:
parent
dec2155bb5
commit
e2a130001c
|
@ -67,6 +67,7 @@ namespace :gitlab do
|
|||
users.find_each do |user|
|
||||
if g.user(user.gid).try(:username) != user.login
|
||||
puts "start"+ "#{user.id}"
|
||||
g.edit_user(user.gid, :username => user.login)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue