Skip to content

Commit

Permalink
fix(vcs): exclude .garden from version hashing
Browse files Browse the repository at this point in the history
This fixes an error where flat projects (i.e. those with a module whose
config is co-located with the project config, and that don't define an
include pattern) could not be deployed.
  • Loading branch information
thsig committed Apr 9, 2019
1 parent 80c391c commit 0dc1208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garden-service/src/vcs/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class GitHandler extends VcsHandler {
let ignored: string[] = []

try {
lines = await git("ls-files", "-s", "--other", path)
lines = await git("ls-files", "-s", "--other", "--exclude=.garden", path)
ignored = await git("ls-files", "--ignored", "--exclude-per-directory=.gardenignore", path)
} catch (err) {
// if we get 128 we're not in a repo root, so we get no files
Expand Down

0 comments on commit 0dc1208

Please sign in to comment.