bored-grass-81679
05/05/2023, 12:06 PM/snapshot/project/tmp/pkg/cli/node_modules/execa/lib/error.js:59
error = new Error(message);
^
Error: Command "git status" failed with code 128:
fatal: this operation must be run in a work tree
at makeError (/snapshot/project/tmp/pkg/cli/node_modules/execa/lib/error.js:59:11)
at handlePromise (/snapshot/project/tmp/pkg/cli/node_modules/execa/index.js:114:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at exec (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/util/util.ts:231:17)
at /snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:97:26
at wrapped.ensureSafeDirGitRepo (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:162:7)
at wrapped.getRepoRoot (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:205:5)
at wrapped.getFiles (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/vcs/git.ts:269:21)
at findConfigPathsInPath (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/util/fs.ts:175:17)
at /snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/watch.ts:298:29
Here is more context about our setup and about the encoutered problem:
- Garden version: 0.12.55
- We include 3 remote sources in the garden.project.yaml file.
- We have a deployment bash script which runs garden link source
on those remote sources and then garden dev
- The problem is sadly only reproducible on my coworkers MacOS laptop at the moment.
I would appreciate any leads on this since it's affecting my coworker's productivity by quite a lot. 😦bright-policeman-43626
05/05/2023, 2:09 PMrm -fr .garden
2. Do you mind trying to clone the repo again, perhaps the .git folder is corrupted?bored-grass-81679
05/05/2023, 2:15 PMbright-policeman-43626
05/05/2023, 2:26 PMbored-grass-81679
05/05/2023, 3:37 PMbright-policeman-43626
05/08/2023, 2:55 PMquaint-dress-831
05/08/2023, 3:02 PM.garden
folders both within current working and below with find . -type d -name .garden -exec rm -r {} +