Real fix for removing keys. Closes PR #1616
This commit is contained in:
parent
9e80d2d4f7
commit
2985697af7
1 changed files with 3 additions and 2 deletions
|
@ -96,8 +96,9 @@ module Gitlab
|
|||
end
|
||||
|
||||
def rm_key(user)
|
||||
File.unlink(File.join(config_tmp_dir, 'gitolite/keydir',"#{user}.pub"))
|
||||
`cd #{File.join(config_tmp_dir,'gitolite')} ; git rm keydir/#{user}.pub`
|
||||
key_path = File.join(config_tmp_dir, 'gitolite/keydir', "#{user}.pub")
|
||||
ga_key = ::Gitolite::SSHKey.from_file(key_path)
|
||||
ga_repo.rm_key(ga_key)
|
||||
end
|
||||
|
||||
# update or create
|
||||
|
|
Loading…
Reference in a new issue