From 4f6c92b2a7cde49fc468cc3a2bad56bc4d7a21d2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 5 Dec 2024 22:36:14 +0100 Subject: [PATCH] Copy the `.git` directory to the setup environment --- scripts/Common/OS/setup.fish | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/Common/OS/setup.fish b/scripts/Common/OS/setup.fish index f7a1719b..3f014288 100755 --- a/scripts/Common/OS/setup.fish +++ b/scripts/Common/OS/setup.fish @@ -60,8 +60,13 @@ function runSetup and echo "Cloning project..." and source "$dir/../../lib/copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT" - and mkdir -p "$mountDir/$nixPkgsDir" - and cp -r "$nixPkgsDir"/* "$mountDir/$nixPkgsDir" + + and begin + set -l path "$mountDir/$nixPkgsDir" + and mkdir -p (dirname "$path") + and cp -r "$nixPkgsDir" "$path" + end + and runHook initOS "Please set up a function `initOS` for initializing the mounted OS and installing valhalla dependencies" and runChroot "$mountDir" git config --system --add safe.directory "$PROJECT_CLONE_ROOT" and runHook --force bootstrapSetup "Please set up a function `bootstrapSetup` for installing `fish` into the "