Disable git in pass

Gerulf Schnitzler gerulf at myprofitsee.com
Mon Sep 9 11:30:49 CEST 2019


i have the following issue(s):
There is a password store somewhere on disk. That store is linked into home.

# ls -lh ~/.password-store/
# lrwxrwxrwx 1 xxx xxx 25 Sep  4 08:48 secrets -> /some/path/config/Secrets/

The first issue is pass complaining about that:
# pass insert -f -m secrets/test
# fatal: /root/.password-store/psi-secrets/test.gpg: 
'/root/.password-store/psi-secrets/test.gpg' is outside repository

2nd issue: There is a git repository in one of the parent directories, 
say /some/path/.
pass tries to git commit to that repository, which is not meant for pass 
to be used.

# pass rm -f secrets/test
# removed '~/.password-store/secrets/test.gpg'
# fatal: ~/.password-store/secrets/test.gpg: 
'~/.password-store/secrets/test.gpg' is outside repository
# *** Please tell me who you are.
# Run
#  git config --global user.email "you at example.com"
#  git config --global user.name "Your Name"
# to set your account's default identity.
# Omit --global to set the identity only in this repository.
# fatal: unable to auto-detect email address (got 'xxx at xxx.(none)')

pass did not do any of those things previously, although i don't know 
what changed. The current version in use is v1.7.3.

I use this quick hack as a workaround:
sed -i 's/\(set_git\s\)/set_git2 /' /usr/bin/pass
sed -i '2iset_git2() { true; }' /usr/bin/pass

Am i missing something?

More information about the Password-Store mailing list