mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-02 21:40:18 +00:00
Fixed issue when initializing git-secret with an existing .gitignore
This commit is contained in:
parent
684ca668c2
commit
674a880882
@ -460,10 +460,10 @@ function _secrets_dir_is_not_ignored {
|
||||
git_secret_dir=$(_get_secrets_dir)
|
||||
|
||||
local ignores
|
||||
ignores=$(_check_ignore "${_SECRETS_DIR}/")
|
||||
ignores=$(_check_ignore "${_SECRETS_DIR}")
|
||||
|
||||
if [[ ! $ignores -eq 1 ]]; then
|
||||
_abort "'$git_secret_dir/' is ignored."
|
||||
_abort "'$git_secret_dir' is ignored."
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user