Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
63
def
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_env
Function · 0.90
test_is_git_available
Function · 0.90
get_repository_url_from_path
Function · 0.85
is_gitignored
Function · 0.85
gitignore
Function · 0.85
Calls
1
_get_git_path
Function · 0.85
Tested by
1
test_is_git_available
Function · 0.72