Skip to content

Commit

Permalink
only filter empty and comment lines in .gitallowed
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig committed May 13, 2016
1 parent cac699c commit b237027
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 @@ -54,7 +54,7 @@ load_patterns() {
}

load_allowed() {
git config --get-all secrets.allowed | awk 'NF && $1!~/^#/'
git config --get-all secrets.allowed
local gitallowed="$(git rev-parse --show-toplevel)/.gitallowed"
if [ -e "$gitallowed" ]; then
cat $gitallowed | awk 'NF && $1!~/^#/'
Expand Down

0 comments on commit b237027

Please sign in to comment.