Skip to content

Commit 8cbd56a

Browse files
author
Ben Picolo
committed
Put user back where it was
1 parent 54d212f commit 8cbd56a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pre_commit/languages/docker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def run_hook(repo_cmd_runner, hook, file_args):
8989
cmd = (
9090
'docker', 'run',
9191
'--rm',
92+
'-u', '{}:{}'.format(os.getuid(), os.getgid()),
9293
'-v', '{}:/src:rw'.format(os.getcwd()),
9394
'--workdir', '/src',
9495
'--entrypoint', entry_executable,

0 commit comments

Comments
 (0)