Skip to content

Commit 57e7003

Browse files
authored
Merge pull request #619 from eole/fix/rename-ssh-keys-with-nil-location
SSH keys with nil location can't be renamed
2 parents f76d124 + a1172b0 commit 57e7003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/tasks/rename_ssh_keys.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace :redmine_git_hosting do
1212
repo_key['title'] = ssh_key.identifier
1313
repo_key['key'] = ssh_key.key
1414
repo_key['owner'] = ssh_key.owner
15-
repo_key['location'] = ssh_key.location
15+
repo_key['location'] = (ssh_key.location or "")
1616

1717
puts " - Delete SSH key #{ssh_key.identifier}"
1818
RedmineGitolite::GitHosting.resync_gitolite({ :command => :delete_ssh_key, :object => repo_key })

0 commit comments

Comments
 (0)