Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/21st-dev/1code
/ assertValidGitPath
Function
assertValidGitPath
src/main/lib/git/security/path-validation.ts:193–195 ·
view source on GitHub ↗
(filePath: string)
Source
from the content-addressed store, hash-verified
191
* @throws PathValidationError
if
path is invalid
192
*/
193
export
function
assertValidGitPath(filePath: string): void {
194
validateRelativePath(filePath, { allowRoot: true });
195
}
Callers
6
gitCheckoutFile
Function · 0.90
gitCheckoutFiles
Function · 0.90
gitStageFile
Function · 0.90
gitStageFiles
Function · 0.90
gitUnstageFile
Function · 0.90
gitUnstageFiles
Function · 0.90
Calls
1
validateRelativePath
Function · 0.85
Tested by
no test coverage detected