configGitSafeDir adds a safe.directory entry for the mount path.
(t *testing.T, path string)
| 17 | |
| 18 | // configGitSafeDir adds a safe.directory entry for the mount path. |
| 19 | func 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. |
| 25 | func isMounted(path string) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected