Description
To run any git command you should add current path to safe.directory:
git config --global --add safe.directory ${GITHUB_WORKSPACE}
Otherwise you'll receive error:
fatal: detected dubious ownership in repository at '/__w/UTBotJava/UTBotJava'
To add an exception for this directory, call:
git config --global --add safe.directory /__w/UTBotJava/UTBotJava
Error: Process completed with exit code 128.
To Reproduce
Steps to reproduce the behavior:
- Run any
git command in current directory
Expected behavior
Git works as expected
Actual behavior
git fails with exit code 128
Visual proofs (screenshots, logs, images)
See last build
Environment
Not applicable
Additional context
Not applicable
Description
To run any
gitcommand you should add current path to safe.directory:git config --global --add safe.directory ${GITHUB_WORKSPACE}Otherwise you'll receive error:
To Reproduce
Steps to reproduce the behavior:
gitcommand in current directoryExpected behavior
Git works as expected
Actual behavior
gitfails with exit code 128Visual proofs (screenshots, logs, images)
See last build
Environment
Not applicable
Additional context
Not applicable