Hello guys,
After some tests, it's clear that file token check only read working dir files.
Add "todo" in a file
Git add the file
Git commit => token check deny the commit (cool !)
Remove "todo" from the file
DO NOT GIT ADD THE FILE
Git commit => "token check DO NOT deny the commit (Whoo !)
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 ?
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 !