diff options
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index a6160a4c3b4..72a40ce5f01 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1287,6 +1287,17 @@ class Repository paths - generated_files end + def object_format + return unless exists? + + case raw.object_format + when :OBJECT_FORMAT_SHA1 + FORMAT_SHA1 + when :OBJECT_FORMAT_SHA256 + FORMAT_SHA256 + end + end + private def ancestor_cache_key(ancestor_id, descendant_id) |