Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pre-commit/pre-commit
/ git_dir
Function
git_dir
testing/fixtures.py:39–42 ·
view source on GitHub ↗
(tempdir_factory)
Source
from the content-addressed store, hash-verified
37
38
39
def
git_dir(tempdir_factory):
40
path = tempdir_factory.get()
41
cmd_output(
'git'
,
'-c'
,
'init.defaultBranch=master'
,
'init'
, path)
42
return
path
43
44
45
def
make_repo(tempdir_factory, repo_source):
Callers
15
test_clone
Function · 0.90
test_warning_for_deprecated_stages_on_init
Function · 0.90
test_no_warning_for_non_deprecated_stages_on_init
Function · 0.90
test_clone_shallow_failure_fallback_to_complete
Function · 0.90
test_clone_tag_not_on_mainline
Function · 0.90
in_conflicting_submodule
Function · 0.90
commit_msg_repo
Function · 0.90
prepare_commit_msg_repo
Function · 0.90
failing_prepare_commit_msg_repo
Function · 0.90
repo_with_commits
Function · 0.90
sub_staged
Function · 0.90
push_example
Function · 0.90
Calls
2
cmd_output
Function · 0.90
get
Method · 0.45
Tested by
15
test_clone
Function · 0.72
test_warning_for_deprecated_stages_on_init
Function · 0.72
test_no_warning_for_non_deprecated_stages_on_init
Function · 0.72
test_clone_shallow_failure_fallback_to_complete
Function · 0.72
test_clone_tag_not_on_mainline
Function · 0.72
in_conflicting_submodule
Function · 0.72
commit_msg_repo
Function · 0.72
prepare_commit_msg_repo
Function · 0.72
failing_prepare_commit_msg_repo
Function · 0.72
repo_with_commits
Function · 0.72
sub_staged
Function · 0.72
push_example
Function · 0.72