(
repoPath: string,
args: string[],
env: Record<string, string> = {},
)
| 6 | import { getBranches, getTags } from "./git.js"; |
| 7 | |
| 8 | const runGit = ( |
| 9 | repoPath: string, |
| 10 | args: string[], |
| 11 | env: Record<string, string> = {}, |
| 12 | ) => { |
| 13 | execFileSync("git", args, { |
| 14 | cwd: repoPath, |
| 15 | env: { |
| 16 | ...process.env, |
| 17 | ...env, |
| 18 | }, |
| 19 | stdio: "pipe", |
| 20 | }); |
| 21 | }; |
| 22 | |
| 23 | const createTempRepo = async () => { |
| 24 | const repoPath = await mkdtemp(join(tmpdir(), "sourcebot-git-test-")); |
no outgoing calls
no test coverage detected