git init 在错误的位置创建目录?

git init creates directory in wrong location?

paladin1@locutus:~> ls -ld .password-store/
drwxrwxrwx 3 paladin1 users 4096 Dec  8 00:14 .password-store/
paladin1@locutus:~> cd .password-store/
paladin1@locutus:~/.password-store> env | grep GIT
paladin1@locutus:~/.password-store> git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>
Initialized empty Git repository in /home/paladin1/.git/
paladin1@locutus:~/.password-store> pass git init
fatal: cannot change to '/home/paladin1/.password-store': Permission denied

(我通常没有此目录的 777 权限;这是为了排除故障。)

为什么 git 在父目录而不是我告诉它的地方创建它的存储库?

正如@torek 在上面的评论中提出的问题,

git 运行 在 firejail 中并且没有目录访问权限。