-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix check for overridden hooks path (#91)
* fix logic for checking whether repo is overriding core.hooksPath * add development test to ensure check for core.hooksPath being overridden works correctly
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,11 @@ testCommit() { | |
assert_failure | ||
} | ||
|
||
@test "check_repo fails when core.hooksPath is overridden" { | ||
run changeGitHooksPath | ||
assert_failure | ||
} | ||
|
||
@test "check_repo fails when you have a personal email" { | ||
git config --file $REPO_PATH/.git/config user.email [email protected] | ||
run ./check_repos.sh $REPO_PATH check_user_email >&3 | ||
|
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