Skip to content

Commit

Permalink
Supporting spaces in git exec path
Browse files Browse the repository at this point in the history
In Windows e.g. in GitBash, Git can be installed with spaces in the path.  This fix stops it failing with this error:
git-secrets: line 46: C:\Program: No such file or directory
  • Loading branch information
kramos authored Feb 24, 2017
1 parent 0714f2b commit 413ea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pre_commit_hook* pre-commit hook (internal only)
prepare_commit_msg_hook* prepare-commit-msg hook (internal only)"

# Include the git setup script. This parses and normalized CLI arguments.
. $(git --exec-path)/git-sh-setup
. "$(git --exec-path)"/git-sh-setup

load_patterns() {
git config --get-all secrets.patterns
Expand Down

0 comments on commit 413ea1c

Please sign in to comment.