diff options
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index bb3f74c4b89..168d1f01db7 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -72,6 +72,7 @@ class Project < ActiveRecord::Base attr_accessor :old_path_with_namespace attr_accessor :template_name attr_writer :pipeline_status + attr_accessor :skip_disk_validation alias_attribute :title, :name @@ -1020,6 +1021,7 @@ class Project < ActiveRecord::Base # Check if repository already exists on disk def can_create_repository? return false unless repository_storage_path + return true if skip_disk_validation expires_full_path_cache # we need to clear cache to validate renames correctly |