Merge branch 'bug/223' into 'master'

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 #223 

Closes #210 

See merge request !136
This commit is contained in:
Ian Cordasco 2016-11-09 18:02:19 +00:00
commit 5b1d84f0ec

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: