gnustavo / Git-Hooks

Framework for implementing Git (and Gerrit) hooks
http://search.cpan.org/dist/Git-Hooks/
41 stars 17 forks source link

Fix bug: Git is not completely isolated #70

Closed mikkoi closed 2 years ago

mikkoi commented 2 years ago

When creating the Git::Repository object, we can pass environment variables to it.

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

gnustavo commented 2 years ago

Thank you, Mikko.