Issue 874 locate git repo (#886)

* first step in improving error message for #874
* possible doc fix for #851
* improve comment
* update changelog
pull/889/head
Josh Rabinowitz 2 years ago committed by GitHub
parent c7751afad8
commit 8345e526cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@
### Misc
- Improve error messaging when we cannot find git repo (#874)
- Temporarily disable apk builds on alpine (#881)
## 0.5.0

@ -44,8 +44,8 @@ And you're done!
1. [Get their `gpg` public-key](#using-gpg). **You won't need their secret key.**
They can export their public key for you using a command like:
`gpg --armor --export their@email.com > public_key.txt`
`# armor here makes it ascii`
> gpg --armor --export their@email.com > public_key.txt
> # armor here makes it ascii
2. Import this key into your `gpg` keyring (in `~/.gnupg` or similar) by running `gpg --import public_key.txt`

@ -157,6 +157,7 @@ function hide {
if [[ "$update_only_modified" -eq 0 ]] ||
[[ "$fsdb_file_hash" != "$file_hash" ]]; then
# we no longer use --no-permission-warning here, for #811
local args=( --homedir "$secrets_dir_keys" --use-agent --yes '--trust-model=always' --encrypt )
# SECRETS_GPG_ARMOR is expected to be empty or '1'.
@ -168,8 +169,6 @@ function hide {
args+=( '--armor' )
fi
# we no longer use --no-permission-warning here in non-verbose mode, for #811
# we depend on $recipients being split on whitespace
# shellcheck disable=SC2206
args+=( $recipients -o "$output_path" "$input_path" )

@ -7,7 +7,7 @@ function _check_setup {
local is_tree
is_tree=$(_is_inside_git_tree)
if [[ "$is_tree" -ne 0 ]]; then
_abort "not in dir with git repo. Use 'git init' or 'git clone', then in repo use 'git secret init'"
_abort "git cannot locate repo. Perhaps use 'git init'/'git clone', then 'git secret init'"
fi
# Checking if the '.gitsecret' dir (or as set by SECRETS_DIR) is not ignored:

Loading…
Cancel
Save