No more abspath

This commit is contained in:
Anthony Sottile
2014-03-29 23:34:14 -07:00
parent 1238368f88
commit 75fc3a3481

View File

@@ -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):