gnustavo / Git-Hooks

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

Token check only use working dir file state #48

Closed stacyharper closed 6 years ago

stacyharper commented 6 years ago

Hello guys, After some tests, it's clear that file token check only read working dir files.

I was affraid that CheckFile only read the working dir files, but, reading the code teach me that check_command use tmp files created from the git indexed files.

Why deny_token use working dir files and not git indexed files ?

TY dudes !

gnustavo commented 6 years ago

Hi Eddie. Good catch! Thanks for the report.

I just fixed it on commit 29ef0c7.

I'll cut a new release soon.