Skip to content

Commit

Permalink
fix: ensure empty read/write folders during init process
Browse files Browse the repository at this point in the history
  • Loading branch information
shapel committed Jan 30, 2018
1 parent 775b1b3 commit 633bcd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const makeGitStorage = async (
const init = async () => {
await fs.emptyDir(config.targetPath)

await fs.ensureDir(readGitPath)
await fs.ensureDir(writeGitPath)
await fs.emptyDir(readGitPath)
await fs.emptyDir(writeGitPath)

await git()(`clone -b ${config.branchName} -- ${config.repoUrl} ${readGitPath}`)

Expand Down

0 comments on commit 633bcd1

Please sign in to comment.