Skip to content

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

Closed
@baltitenger

Description

@baltitenger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions