Mix compile and mix release --> "fatal not a git repository"

I’m trying to compile a release on a server. A release is copied over to a server by my script as a *.tar.gz file and unpacked there. The “.git” directory is excluded from an archive because it’s not needed.

But, when calling mix compile or mix release, it complains:

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

Does it require a project directory to be a git repository? How to turn it off?

There’s 1 dependency in it which I source straight from gitlab, it’s my own library. Does that matter, though?

Neither mix compile or mix release require that a git repo, at least not out-of-the-box. This error must be coming from somewhere else in the application, perhaps one of its deps. Unfortunately you have only posted the one line that contains the error but none of the context, so it is hard to say more :slight_smile: