Skip to content

git-command hooks do not respect -C option #2

Description

@stevenkaras

When I run:

git -C ~/path/to/repo pull

I would expect the pre-command-pull hook in ~/path/to/repo/.git/hooks/pre-command-pull to be run even if the current working directory is something else.

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