From 6d6ce0912887766e0c48197b82b44a808f996ce8 Mon Sep 17 00:00:00 2001 From: Gunjan Gupta Date: Sat, 27 Jan 2024 16:31:52 +0530 Subject: [PATCH] Fix failure to setup git repository --- config/sources/families/meson-s4t7.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/sources/families/meson-s4t7.conf b/config/sources/families/meson-s4t7.conf index 1d27f9e37c..141585abfa 100644 --- a/config/sources/families/meson-s4t7.conf +++ b/config/sources/families/meson-s4t7.conf @@ -139,12 +139,14 @@ function kernel_copy_extra_sources__khadas_common_drivers() { rm -rf "${common_drivers_git_bare_tree}" fi - run_host_command_logged git clone --bare "${COMMON_DRIVERS_SOURCE}" \ - "${common_drivers_git_bare_tree}" + run_host_command_logged git clone --tags --no-checkout \ + "${COMMON_DRIVERS_SOURCE}" "${common_drivers_git_bare_tree}" touch "${common_drivers_git_bare_tree_done_marker}" fi + git_ensure_safe_directory "${common_drivers_git_bare_tree}" + GIT_FIXED_WORKDIR="${LINUXSOURCEDIR}/common_drivers" \ GIT_BARE_REPO_FOR_WORKTREE="${common_drivers_git_bare_tree}" \ GIT_BARE_REPO_INITIAL_BRANCH="${KERNELBRANCH#*:}" \