mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
scripts: Mark git repository as safe
Git will refuse to generate information for the report if the repository
is owned by a different user (root in the container vs the real owner
outside).
e.g:
Error generating human readable git reference: fatal: unsafe repository ('/cloud-hypervisor' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /cloud-hypervisor
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -113,6 +113,9 @@ if [ -n "$test_filter" ]; then
|
|||||||
test_binary_args+=("--test-filter $test_filter")
|
test_binary_args+=("--test-filter $test_filter")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure that git commands can be run in this directory (for metrics report)
|
||||||
|
git config --global --add safe.directory $PWD
|
||||||
|
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
time target/$BUILD_TARGET/release/performance-metrics ${test_binary_args[*]}
|
time target/$BUILD_TARGET/release/performance-metrics ${test_binary_args[*]}
|
||||||
RES=$?
|
RES=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user