Cancelling commit doesn't terminate pre-commit hook

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: None
    • Component/s: Git
    • None
    • Environment:

      Windows 10

    • Severity 3 - Minor

      When a commit is cancelled, the pre-commit hook doesn't stop and runs until the end.

      Besides the useless CPU comsumption, this is a problem because our pre-commit hook stashes and unstashes unstaged changes before and after running tests on the code. It manages gracefully interruptions, so that changes are finally unstaged anyway. But if we cancel the commit in sourcetree, the hook still runs, and if we make changes to the code, these changes are deleted as soon as the hook ends... SourceTree should terminate or kill the pre-commit hook when the commit is cancelled.

            Assignee:
            Unassigned
            Reporter:
            Mathieu Giorgino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: