Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File upload doesn't respect .gitattributes to put the file in LFS #18297

Closed
baltitenger opened this issue Jan 16, 2022 · 0 comments · Fixed by #18316
Closed

File upload doesn't respect .gitattributes to put the file in LFS #18297

baltitenger opened this issue Jan 16, 2022 · 0 comments · Fixed by #18316

Comments

@baltitenger
Copy link
Contributor

Gitea Version

1.15.8 and 1.16.0_dev_850_ga38ab71b20

Git Version

2.34.1

Operating System

Linux

How are you running Gitea?

I'm using the Arch Linux package for gitea and running it through the systemd service provided by the package.

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/baltitenger/d048c3b523cc44969ad3f21c294b26a0

Description

Uploading files using the web UI ignores .gitattributes and adds files to git instead of uploading them to LFS.
The issue can be seen in this test repo.
My app.ini can be seen in this gist.

Perhaps related to #17496

Screenshots

The repo after uploading the file through the web UI:
image

zeripath added a commit to zeripath/gitea that referenced this issue Jan 17, 2022
We need to use the cached .gitattributes file for checking if a file
should be stored in the lfs.

Fix go-gitea#18297

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit that referenced this issue Jan 18, 2022
We need to use the cached .gitattributes file for checking if a file
should be stored in the lfs.

Fix #18297

Signed-off-by: Andrew Thornton <art27@cantab.net>
Chianina pushed a commit to Chianina/gitea that referenced this issue Mar 28, 2022
We need to use the cached .gitattributes file for checking if a file
should be stored in the lfs.

Fix go-gitea#18297

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant