Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-8025

GIT pre-commit hooks do not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Highest Highest
    • None
    • 4.2.2
    • 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.

              Unassigned Unassigned
              19cf0ef3a288 Kate Wilkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: