Commit 039996bd0a9e547cd5dbcb7f12fa43152f0589c1
1 parent
f5551efd
Exists in
master
and in
4 other branches
Fix invalid method call for gitolite
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/models/project.rb
@@ -264,7 +264,7 @@ class Project < ActiveRecord::Base | @@ -264,7 +264,7 @@ class Project < ActiveRecord::Base | ||
264 | 264 | ||
265 | Gitlab::ProjectMover.new(self, old_dir, new_dir).execute | 265 | Gitlab::ProjectMover.new(self, old_dir, new_dir).execute |
266 | 266 | ||
267 | - git_host.move_repository(old_repo, self.path_with_namespace, self) | 267 | + git_host.move_repository(old_repo, self) |
268 | 268 | ||
269 | save! | 269 | save! |
270 | end | 270 | end |
lib/gitlab/backend/gitolite.rb
@@ -26,10 +26,10 @@ module Gitlab | @@ -26,10 +26,10 @@ module Gitlab | ||
26 | config.update_project!(project) | 26 | config.update_project!(project) |
27 | end | 27 | end |
28 | 28 | ||
29 | - def move_repository(old_repo, new_repo, project) | 29 | + def move_repository(old_repo, project) |
30 | config.apply do |config| | 30 | config.apply do |config| |
31 | config.clean_repo(old_repo) | 31 | config.clean_repo(old_repo) |
32 | - config.update_project(new_repo, project) | 32 | + config.update_project(project) |
33 | end | 33 | end |
34 | end | 34 | end |
35 | 35 |