MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / configGitSafeDir

Function configGitSafeDir

e2e_setup_linux_test.go:19–22  ·  view source on GitHub ↗

configGitSafeDir adds a safe.directory entry for the mount path.

(t *testing.T, path string)

Source from the content-addressed store, hash-verified

17
18// configGitSafeDir adds a safe.directory entry for the mount path.
19func configGitSafeDir(t *testing.T, path string) {
20 t.Helper()
21 exec.Command("git", "config", "--global", "--add", "safe.directory", path).Run()
22}
23
24// isMounted checks whether the given path is a FUSE mount point by reading /proc/mounts.
25func isMounted(path string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected