Change how we initialize our git hook application

Look for configuration files in the current directory while checking the
files in the temporary directory.

Closes #210
Closes #223
This commit is contained in:
Ian Cordasco 2016-11-08 21:11:19 -06:00
parent c2ef3c2ce0
commit 7320cce02b
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -41,8 +41,8 @@ def hook(lazy=False, strict=False):
app = application.Application()
with make_temporary_directory() as tempdir:
filepaths = list(copy_indexed_files_to(tempdir, lazy))
app.initialize(filepaths)
app.run_checks()
app.initialize(['.'])
app.run_checks(filepaths)
app.report_errors()
if strict: