Copy the .git directory to the setup environment

This commit is contained in:
Manuel Thalmann 2024-12-05 22:36:14 +01:00
parent 7f60744056
commit 19e9aecc5b

View file

@ -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 "