mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
No more abspath
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
|
||||
import argparse
|
||||
import os.path
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
@@ -36,7 +35,7 @@ def _run_single_hook(runner, repository, hook_id, all_files=False):
|
||||
retcode, stdout, stderr = repository.run_hook(
|
||||
runner.cmd_runner,
|
||||
hook_id,
|
||||
map(os.path.abspath, get_filenames(hook['files'])),
|
||||
get_filenames(hook['files']),
|
||||
)
|
||||
|
||||
if retcode != repository.hooks[hook_id].get('expected_return_value', 0):
|
||||
|
||||
Reference in New Issue
Block a user