-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hook location detection had flawed logic and was only checking for a global hook. If the global hook was not detected it was considered an error and aborted with a failure. Both global and repository hooks now do not consider failure if they cannot find a hook. This allows for the true error message to be reported if neither location can be detected. The only case for a repository failure is if the hook commands were run while not in a Git repository and the global hook location is unset.
- Loading branch information
1 parent
387ee52
commit 70af6fa
Showing
2 changed files
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters