pass: fake fake

compress-drv-tests
Motiejus Jakštys 2023-01-03 13:28:28 +02:00
parent 1bb2ca0edf
commit eb5e34153c
3 changed files with 12 additions and 0 deletions

3
.envrc
View File

@ -1,3 +1,4 @@
_gpgconv="gpg2 -d --quiet --yes --compress-algo=none --no-encrypt-to"
if [ "$(git config diff.gpg.textconv)" != "$_gpgconv" ]; then
git config diff.gpg.binary true
@ -5,3 +6,5 @@ if [ "$(git config diff.gpg.textconv)" != "$_gpgconv" ]; then
fi
export PASSWORD_STORE_DIR=$PWD/secrets
export REAL_PASS=$(which pass)
PATH_add tools

Binary file not shown.

9
tools/pass Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# This hack allows passwords to be in a sub-directory "secrets", and
# still visible for git.
#
# This is not a good setup, because `pass git status` will show
# relative paths to `secrets/`. We need a better solution, but I
# don't know a good one yet.
grep -v "export GIT_CEILING_DIRECTORIES=" "$REAL_PASS" | bash -s -- "$@"