Skip to content

Conversation

@called-d
Copy link

@called-d called-d commented Oct 1, 2024

$ git diff run inside a Docker container was always failing. This seemed to be a problem related to directory ownership, which was resolved by setting safe.directory.

root@fc2e2ac9ff53:/workers-wasi# make -j ci
...

Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>
make: *** [Makefile:10: ci] Error 129
root@fc2e2ac9ff53:/workers-wasi# git status
fatal: detected dubious ownership in repository at '/workers-wasi'
To add an exception for this directory, call:

        git config --global --add safe.directory /workers-wasi

https://git-scm.com/docs/git-config#Documentation/git-config.txt-safedirectory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant