nicbet / docker-phoenix

A dockerized Phoenix development and runtime environment.
GNU General Public License v3.0
277 stars 57 forks source link

Getting error while using git with Github Codespace #40

Open vrnithinkumar opened 4 months ago

vrnithinkumar commented 4 months ago

I started a codespaces from this repo and tried git status and getting this error below

> git status
warning: unable to access '/root/.gitconfig': Is a directory
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
nicbet commented 4 months ago

Hi @vrnithinkumar,

the issue is in https://github.com/nicbet/docker-phoenix/blob/58c52ccafb15b00ad6e409d549955b7e5a2ddda9/.devcontainer/docker-compose.yml#L22

where the VSCode dev container configuration attempts to mount the git repository. I'll take a look at how we can make that compatible with Github Codespaces.