Skip to content

Commit

Permalink
fix: recursive bug copying .garden into .garden
Browse files Browse the repository at this point in the history
Fixes #366

Only an issue when module and project are in the same directory
  • Loading branch information
drubin committed Nov 14, 2018
1 parent 6f81850 commit 7855982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion garden-service/src/build-dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export class BuildDir {
sourcePath = stripWildcard(sourcePath)
destinationPath = stripWildcard(destinationPath)

await execa("rsync", ["-rptgo", sourcePath, destinationPath])
// --exclude is required for modules where the module and project are in the same directory
await execa("rsync", ["-rptgo", `--exclude=${GARDEN_DIR_NAME}`, sourcePath, destinationPath])
}
}

Expand Down

0 comments on commit 7855982

Please sign in to comment.