git hook pre_push not working

XMLWordPrintable

    • Type: Bug
    • Resolution: Resolved Locally
    • Priority: High
    • None
    • Affects Version/s: 2.5.5
    • Component/s: Git
    • Severity 2 - Major

      The git hook pre_push doesn't seem to work.

       

      Steps to reproduce (simple test):

      Create a simple file "pre_push" in ".git/hooks" like this:

      #!/bin/sh
      echo hello > pre_push.log.txt
      

      Make sure it's encoding is utf-8 and the line endings are linux style.

      Confirm that it's working by opening the git bash and run ".git/hooks/pre_push". The file "pre_push.log.txt" should be created. Remove it for the real test.

      Now push something to another repo using SourceTree. The file will not be created

              Assignee:
              Unassigned
              Reporter:
              Tim Solka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: