Skip to content

Jenkins security disable core.hookPath cause git lfs install failed #5171

@nhatkhai

Description

@nhatkhai

Describe the issue
jenkinsci/git-plugin#1237 had add invalid value into core.hookPath=NUL: in windows. This cause git lfs install failed with follow message:

Is it possible for git lfs design to still work under this setting? Seem like Jenkins forks currently think this is the right approach for disable hook!

11:07:05  open C:\XYZ\NUL:\pre-push: The filename, directory name, or volume label syntax is incorrect.
11:07:05  To resolve this, either:
11:07:05    1: run `git lfs update --manual` for instructions on how to merge hooks.
11:07:05    2: run `git lfs update --force` to overwrite your hook.

System environment
git version 2.33.1.windows.1

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