Commit cf9d67f0 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Repository size is Gitaly only

parent 4e7d3451
...@@ -403,13 +403,7 @@ module Gitlab ...@@ -403,13 +403,7 @@ module Gitlab
# Return repo size in megabytes # Return repo size in megabytes
def size def size
size = gitaly_migrate(:repository_size) do |is_enabled| size = gitaly_repository_client.repository_size
if is_enabled
size_by_gitaly
else
size_by_shelling_out
end
end
(size.to_f / 1024).round(2) (size.to_f / 1024).round(2)
end end
......
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