| 901 | |
| 902 | describe("path filtering with --path", () => { |
| 903 | async function commitFile(cwd: string, file: string, message: string, content = file) { |
| 904 | const fullPath = path.join(cwd, file); |
| 905 | await fs.mkdir(path.dirname(fullPath), { recursive: true }); |
| 906 | await fs.writeFile(fullPath, content); |
| 907 | await x("git", ["add", "--", file], { nodeOptions: { cwd } }); |
| 908 | await x("git", ["commit", "-m", message], { nodeOptions: { cwd } }); |
| 909 | } |
| 910 | |
| 911 | test("should support repeated --path flags", async () => { |
| 912 | const cwd = await gitBootstrap("fixtures/default"); |