Commit c57eb3f9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix project update service

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent df385625
......@@ -21,7 +21,7 @@ module Projects
project.change_head(params[:default_branch])
end
if project.update_attributes(params)
if project.update_attributes(params.except(:default_branch))
if project.previous_changes.include?('path')
project.rename_repo
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment