From e001a7d2ba476df32e52a42365b6db5eb770ecfe Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 23 Oct 2016 16:12:10 -0700 Subject: [PATCH] Install gems with full paths --- pre_commit/prefixed_command_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pre_commit/prefixed_command_runner.py b/pre_commit/prefixed_command_runner.py index fc4a3198..8461d19d 100644 --- a/pre_commit/prefixed_command_runner.py +++ b/pre_commit/prefixed_command_runner.py @@ -47,5 +47,6 @@ class PrefixedCommandRunner(object): def star(self, end): return tuple( - path for path in os.listdir(self.prefix_dir) if path.endswith(end) + self.path(path) + for path in os.listdir(self.prefix_dir) if path.endswith(end) )