Skip to content

Gitea makes update hooks but doesn't use them #9495

Closed
@zeripath

Description

@zeripath
  • Gitea version (or commit ref): master

Description

fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' update $1 $2 $3\n", setting.ScriptType, setting.AppPath, setting.CustomConf),

creates update hooks however gitea does not use this hook and the equivalent hook is essentially empty except for reading the settings file.

This would be of little consequence, except update is run for every reference and this means the settings are read for every reference! This means that pushes that involve a large number of references are unnecessarily slowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/staletype/refactoringExisting code has been cleaned up. There should be no new functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions