Skip to content

How to add custom hooks in new repo (hooks\pre-receive.d\pre-receive) to limit the size of the push file? #22567

Open
@kingmo888

Description

@kingmo888

Feature Description

Hello,
I'm glad to find an open source and feature-rich repository platform like gitea.
I just started to put it into use, but now I have the following requirements. After consulting the data and documents (the Chinese documents are incomplete, and the English documents are viewed with the help of the translator), I can't find a solution. The problems are as follows:

  1. Whether the file size of the push can be limited on the server side (for all organizations and all warehouses) has been achieved through the local. git/books/pre-commit, but it cannot be changed from the root cause.
  2. Whether the warehouse can be limited to the specified size. We use it ourselves. Everyone's level is different. Many people will push all kinds of files (oversized csv, pickle exported files, etc., and various suffix files that are difficult to summarize.)
    thank you.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions