Merge pull request #103 from imbaky/master

Fixed issue when initializing git-secret with an existing .gitignore
pull/106/head
Nikita Sobolev 7 years ago committed by GitHub
commit 87f7cffaa4

@ -339,10 +339,10 @@ function _secrets_dir_is_not_ignored {
git_secret_dir=$(_get_secrets_dir) git_secret_dir=$(_get_secrets_dir)
local ignores local ignores
ignores=$(_check_ignore "${_SECRETS_DIR}/") ignores=$(_check_ignore "${_SECRETS_DIR}")
if [[ ! $ignores -eq 1 ]]; then if [[ ! $ignores -eq 1 ]]; then
_abort "'$git_secret_dir/' is ignored." _abort "'$git_secret_dir' is ignored."
fi fi
} }

Loading…
Cancel
Save