Using a pre-commit hook, Talisman validates the outgoing changeset for things that look suspicious — such as tokens, passwords, and private keys.
1.89k
stars
241
forks
source link
talisman breaks when gitconfig.diff.noprefix=true #379
Closed
revolunet closed 1 year ago
Describe the bug Talisman 1.28.0 (and below) silently fails if you have this setting in your
~/.gitconfig
:To Reproduce Add the GIT setting, try to to run talisman pre-commit hook
This result in :
You can see the progressbar is broken (
?%
) that's because talisman cant handle thegit diff
outputAlso, errored files are not detected and commited
Expected behavior
Talisman should detect or override such userland setting or warn the user.