Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git/git
/ isValidGitDir
Function
isValidGitDir
git-p4.py:989–990 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
987
988
989
def
isValidGitDir(path):
990
return
git_dir(path) is not None
991
992
993
def
parseRevision(ref):
Callers
1
main
Function · 0.85
Calls
1
git_dir
Function · 0.85
Tested by
no test coverage detected