Commit 4c1c6d44 authored by Toon Claes's avatar Toon Claes

Ensure a save error bubbles up

parent 753c3ee3
......@@ -1214,7 +1214,7 @@ class Project < ActiveRecord::Base
return unless hashed_storage?(:repository)
project_repo = project_repository || build_project_repository
project_repo.update(shard_name: repository_storage, disk_path: disk_path)
project_repo.update!(shard_name: repository_storage, disk_path: disk_path)
end
def create_repository(force: false)
......
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