Skip to content

Commit

Permalink
remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd committed May 23, 2024
1 parent d138e85 commit ecf4d93
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions check_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ check_hooks_gitleaks() {

check_hooks_path() {
# ensure that repos are not overriding the hookspath
hooks_path=$(cd "$gitrepo"; git config --local core.hooksPath)
if [ "$hooks_path" != "" ]; then
return 1
fi
hooks_path_origin=$(cd "$gitrepo"; git config --show-origin core.hooksPath)
if [[ "$hooks_path_origin" =~ /^file:$HOME/.gitconfig.*$HOME/.git-support/hooks ]]; then
return 1
Expand Down

0 comments on commit ecf4d93

Please sign in to comment.