mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-03 05:34:29 +01:00
build: Mark git repos as safe for build
This is not an issue when the build is run as non-privilged user. Marking these as safe in case where the build may be run as root or some other user. Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
@@ -56,6 +56,7 @@ build_clh_from_source() {
|
||||
repo_dir="${repo_dir//.git}"
|
||||
rm -rf "${repo_dir}"
|
||||
git clone "${cloud_hypervisor_repo}"
|
||||
git config --global --add safe.directory "$PWD/repo_dir"
|
||||
pushd "${repo_dir}"
|
||||
|
||||
if [ -n "${cloud_hypervisor_pr}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user