diff --git a/action/test/specs/__snapshots__/ssh-target-dir-exists.spec.ts.snap b/action/test/specs/__snapshots__/ssh-target-dir-exists.spec.ts.snap index 1801905..5539ef1 100644 --- a/action/test/specs/__snapshots__/ssh-target-dir-exists.spec.ts.snap +++ b/action/test/specs/__snapshots__/ssh-target-dir-exists.spec.ts.snap @@ -5,6 +5,6 @@ exports[`Deploy to a branch on a custom dir that exists 1`] = ` tree:91548ed23fe65d56dfcbb58357a11c32c9b0b95d author:s0 msg:initial -tree:d019febe4c92496949f9d9eb3eff95d8435aff76 +tree:6ceb2d248e9b9c62291e9d1a5c4afeca8a49b2c8 author:Test User " `; diff --git a/action/test/specs/ssh-target-dir-exists.spec.ts b/action/test/specs/ssh-target-dir-exists.spec.ts index 6554fc2..469d7f4 100644 --- a/action/test/specs/ssh-target-dir-exists.spec.ts +++ b/action/test/specs/ssh-target-dir-exists.spec.ts @@ -21,8 +21,9 @@ it('Deploy to a branch on a custom dir that exists', async () => { await mkdirP(path.join(folders.repoCloneDir, 'folder')); await fs.writeFile(path.join(folders.repoCloneDir, 'folder', 'a'), 'foobar1'); await fs.writeFile(path.join(folders.repoCloneDir, 'folder', 'b'), 'foobar2'); - await mkdirP(path.join(folders.repoCloneDir, 'custom')); + await mkdirP(path.join(folders.repoCloneDir, 'custom', 'b')); await fs.writeFile(path.join(folders.repoCloneDir, 'custom', 'a'), 'foobar1'); + await fs.writeFile(path.join(folders.repoCloneDir, 'custom', 'b', 'c'), 'foobar1'); await util.wrappedExec(`git add -A .`, { cwd: folders.repoCloneDir }); await util.wrappedExec(`git config user.name "Test User"`, { cwd: folders.repoCloneDir,