diff --git a/app/models/project.rb b/app/models/project.rb index 330f533ada1..7ddc55cd34c 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -264,7 +264,7 @@ class Project < ActiveRecord::Base Gitlab::ProjectMover.new(self, old_dir, new_dir).execute - git_host.move_repository(old_repo, self.path_with_namespace, self) + git_host.move_repository(old_repo, self) save! end diff --git a/lib/gitlab/backend/gitolite.rb b/lib/gitlab/backend/gitolite.rb index 05a54ac61e2..7c3861bdd13 100644 --- a/lib/gitlab/backend/gitolite.rb +++ b/lib/gitlab/backend/gitolite.rb @@ -26,10 +26,10 @@ module Gitlab config.update_project!(project) end - def move_repository(old_repo, new_repo, project) + def move_repository(old_repo, project) config.apply do |config| config.clean_repo(old_repo) - config.update_project(new_repo, project) + config.update_project(project) end end