MCPcopy
hub / github.com/GitGuardian/ggshield / is_git_available

Function is_git_available

ggshield/utils/git_shell.py:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def is_git_available() -> bool:
64 try:
65 _get_git_path()
66 return True
67 except GitExecutableNotFound:
68 return False
69
70
71@lru_cache(None)

Callers 5

_find_dot_envFunction · 0.90
test_is_git_availableFunction · 0.90
is_gitignoredFunction · 0.85
gitignoreFunction · 0.85

Calls 1

_get_git_pathFunction · 0.85

Tested by 1

test_is_git_availableFunction · 0.72