Fix invalid method call for gitolite
This commit is contained in:
parent
f5551efdfd
commit
039996bd0a
|
@ -264,7 +264,7 @@ class Project < ActiveRecord::Base
|
||||||
|
|
||||||
Gitlab::ProjectMover.new(self, old_dir, new_dir).execute
|
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!
|
save!
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,10 +26,10 @@ module Gitlab
|
||||||
config.update_project!(project)
|
config.update_project!(project)
|
||||||
end
|
end
|
||||||
|
|
||||||
def move_repository(old_repo, new_repo, project)
|
def move_repository(old_repo, project)
|
||||||
config.apply do |config|
|
config.apply do |config|
|
||||||
config.clean_repo(old_repo)
|
config.clean_repo(old_repo)
|
||||||
config.update_project(new_repo, project)
|
config.update_project(project)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue