GIT pre-commit hooks do not work

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Highest
    • None
    • Affects Version/s: 4.2.2
    • Component/s: Git
    • None
    • Severity 1 - Critical

      GIT pre-commit hooks do not work.

      MacOS Ventura 13.2.1 (Arm Based M1)

      SourceTree 4.2.2 (250)

      Have tried with both embedded and system git - Neither work

      Hooks work as expected when running on the command line with system git.

       

      kate@kwilki-nb-ecr ganymede_configuration % which git
      /usr/bin/git
      kate@kwilki-nb-ecr ganymede_configuration % git --version
      git version 2.39.2 (Apple Git-143)
      

       

      The only way I can make them work is to run sourcetree from the command line within the repo directory with

      open /Applications/Sourcetree.app

      when this is done then pre-commit hooks work as expected.

              Assignee:
              Unassigned
              Reporter:
              Kate Wilkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: