I am trying to run sudo dlv debug
on Arch Linux and I keep getting following error:
error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. exit status 1
When I remove the .git folder, sudo dlv debug
runs as expected, so I assume it could be a configuration issue with git?!
I had a similar error message when debugging code opened in a remote container via vscode.
when I used git status
I got a message saying the git repository is unsafe was owned by someone else. And then a message explaining to use:
git config --global --add safe.directory [your dir here]
doing this I no longer get the VCS stamping warning
4For those coming from Google, you probably don't have the permissions to a folder. chmod user:user folder
and add -R
to propagate it in subfolders.
ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobmtqaWd%2FeISOnqmrp6JivKPAwKKloqaXYsOkv4ysq5qspah6uLTEp2SrrZ6jtq%2BzjJ2cpa6VYq60edGopq0%3D