Skip to content

git team disable unsets core.hooksPath unconditionally #25

Description

@sipgate-uhlig

Bug Report

git version: 2.55.0
git-team version: 2.0.0
go version: ?

failure description

When git team disabled is executed and git team was not enabled before, then core.hooksPath is unset unconditionally.

expected behaviour description

When git team disabled is executed and git team was enabled before, then core.hooksPath is reset to the previous value.

When git team disabled is executed and git team was not enabled before, then core.hooksPath is untouched.

I'd expect a check somewhere near previousHooksPath := appState.PreviousHooksPath in src/command/disable/policy.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions