Closed
Description
- Gitea version (or commit ref): 1.9.3
- Git version: 2.17.1
- Operating system: Ubuntu 18.04.3 LTS
- Database (use
[x]
):- MySQL
- Can you reproduce the bug at https://try.gitea.io:
- Not relevant
- Log gist:
How to reproduce:
- Clean installation of gitea 1.9.3 on Ubuntu with git LFS enabled and path set
ROOT = /home/gitea/gitea-repositories
LFS_START_SERVER = true
LFS_CONTENT_PATH = /home/gitea/data/lfs
- Create a new repository "repo" in gitea
- Clone the repository
git clone https://mydomain/gitea/company/repo.git
- Add LFS tracking and add a file to LFS
cd repo
git lfs track "*.zip"
cp ../file.zip .
git add .gitattributes file.zip
git commit -m "added: zip file LFS tracked"
git push origin master
- In gitea, delete the repository.
- On the server filesystem, the /home/gitea/data/lfs directory is not empty and still contains the zip file.
/home/gitea/data/lfs # ls -alRh
.:
total 12K
drwxr-xr-x 3 gitea gitea 4.0K Oct 8 07:20 .
drwxr-xr-x 3 gitea gitea 4.0K Oct 3 11:30 ..
drwxr-x--- 3 gitea gitea 4.0K Oct 8 07:20 31
./31:
total 12K
drwxr-x--- 3 gitea gitea 4.0K Oct 8 07:20 .
drwxr-xr-x 3 gitea gitea 4.0K Oct 8 07:20 ..
drwxr-x--- 2 gitea gitea 4.0K Oct 8 07:22 7e
./31/7e:
total 7.5M
drwxr-x--- 2 gitea gitea 4.0K Oct 8 07:22 .
drwxr-x--- 3 gitea gitea 4.0K Oct 8 07:20 ..
-rw-r----- 1 gitea gitea 7.5M Oct 8 07:21 ff4325718b51c0fabcd514539af2d1d6db8b8d458a2cc8a724d57d615bd8