MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _norm_pwd

Function _norm_pwd

tests/repository_test.py:143–148  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

141
142
143def _norm_pwd(path):
144 # Under windows bash's temp and windows temp is different.
145 # This normalizes to the bash /tmp
146 return cmd_output_b(
147 'bash', '-c', f"cd '{path}' && pwd",
148 )[1].strip()
149
150
151def test_cwd_of_hook(in_git_dir, tempdir_factory, store):

Callers 2

test_cwd_of_hookFunction · 0.85

Calls 1

cmd_output_bFunction · 0.90

Tested by

no test coverage detected