Fatal: not a git repository

I just deployed a new app to run our workers using bree and I am receiving this error immediately after a deployment:

fatal: not a git repository (or any of the parent directories): .git

This deployment is identical to some other apps, it the same fly toml / dockerfile as some other apps that run from the same project within a monorepo.

app = "cron-prod"

kill_signal = "SIGINT"
kill_timeout = 5
processes = []

  allowed_public_ports = []
  auto_rollback = true
FROM node:latest


COPY package.json .

RUN yarn install

COPY . .

CMD ["node", "dist/cron.js"]


Where is that error coming from, can you tell? Nothing in our deploy uses git.

Here is the latest logs from the last deploy - also shares some VM ids if that helps.

That looks like it’s coming from the app itself. That listening on ... DNS line is the last thing we do, everything else comes from the Docker image / app itself.

You can try building and running locally to see if the same thing happens:

docker built . -t my-app
docker run --rm my-app

Interesting! Im not sure what would be trying to use git when running this simple bree script… Let me try locally and see what we get.

Yes, we are seeing this locally as well. Very odd.

I am guessing this has something to do with path - that is my only guess. Will report back.