mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Put user back where it was
This commit is contained in:
parent
54d212f0d7
commit
8cbd56a0a5
1 changed files with 1 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ def run_hook(repo_cmd_runner, hook, file_args):
|
|||
cmd = (
|
||||
'docker', 'run',
|
||||
'--rm',
|
||||
'-u', '{}:{}'.format(os.getuid(), os.getgid()),
|
||||
'-v', '{}:/src:rw'.format(os.getcwd()),
|
||||
'--workdir', '/src',
|
||||
'--entrypoint', entry_executable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue