When creating the Git::Repository object, we can pass
environment variables to it.
GIT_CONFIG_NOSYSTEM prevents Git from reading system wide config,
normally /etc/gitconfig
Undef XDG_CONFIG_HOME to prevent Git from reading $HOME/.config/git/config.
Undef HOME to prevent Git from reading $HOME/gitconfig
I came across this problem (and solution) because I have set
user.signingkey in my $HOME/gitconfig. I like to sign
all my commits with PGP. During installation of Git::Hooks,
system started to demand my PGP key. Pretty scary!
When creating the Git::Repository object, we can pass environment variables to it.
/etc/gitconfig
I came across this problem (and solution) because I have set user.signingkey in my $HOME/gitconfig. I like to sign all my commits with PGP. During installation of Git::Hooks, system started to demand my PGP key. Pretty scary!
Signed-off-by: Mikko Johannes Koivunalho mikko.koivunalho@iki.fi