Skip to content

Statistics lfs_objects_size is broken

Summary

Statistics lfs_objects_size is broken.

Because Git LFS often stores large files, the size gap will increase.

Steps to reproduce

  1. Create a new project. For example hiroponz/bug-lfs-objects-size-broken
  2. Perform the following steps at the local machine
$ git clone git@gitlab.com:hiroponz/bug-lfs-objects-size-broken.git
$ cd bug-lfs-objects-size-broken
$ git lfs install
$ git lfs track "*.mp4"
$ git add .
$ git ci -m "Initial commit"
$ git push
$ cp /path/to/autodevops-animation.mp4 .
$ git add .
$ git ci -m "Update"
$ git push

Project size is shown as 92KB, but autodevops-animation.mp4 size is actually 7.22MB.

Example Project

https://gitlab.com/hiroponz/bug-lfs-objects-size-broken

Related issues

#29288 (moved) #43765 (closed) #44726 (closed) #49368 (moved)

gitlab-com/gl-infra/infrastructure#4526

Suggested labels

~bug ~lfs backend reproduced on GitLab.com

Edited by Hiroyuki Sato