Commit 753d4cb25e2cc39159963c82e164451f43500ccd
1 parent
3a597db7
Exists in
master
and in
4 other branches
Pass correct parameters
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/models/deploy_key.rb
@@ -21,14 +21,14 @@ class DeployKey < ActiveRecord::Base | @@ -21,14 +21,14 @@ class DeployKey < ActiveRecord::Base | ||
21 | def update_repository | 21 | def update_repository |
22 | Gitlabhq::GitHost.system.new.configure do |c| | 22 | Gitlabhq::GitHost.system.new.configure do |c| |
23 | c.update_keys(identifier, key) | 23 | c.update_keys(identifier, key) |
24 | - c.update_project(project) | 24 | + c.update_project(project.path, project) |
25 | end | 25 | end |
26 | end | 26 | end |
27 | 27 | ||
28 | def repository_delete_key | 28 | def repository_delete_key |
29 | Gitlabhq::GitHost.system.new.configure do |c| | 29 | Gitlabhq::GitHost.system.new.configure do |c| |
30 | c.delete_key(identifier) | 30 | c.delete_key(identifier) |
31 | - c.update_project(project) | 31 | + c.update_project(project.path, project) |
32 | end | 32 | end |
33 | end | 33 | end |
34 | 34 |