From 3f23c7eafbf90c94bf6d14d8e0f5a54f2a6b542a Mon Sep 17 00:00:00 2001 From: Jarrod Urban Date: Fri, 22 Dec 2023 12:29:52 +0100 Subject: [PATCH] fix docs about sparse checkout I am using git version 2.39.2. This version fixes some errors and warnings that I ran into Signed-off-by: Jarrod Urban --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 75ee47ea..8d215fb2 100644 --- a/README.md +++ b/README.md @@ -47,16 +47,14 @@ downloads/lxcfs/ All steps for creating a sparse checkout ``` +#!/bin/bash + git clone --filter=blob:none --no-checkout git@github.com:lxc/linuxcontainers.org.git -cd linuxcontainers.org/ -git sparse-checkout set --cone -echo -e '/*\n!downloads' >> .git/info/sparse-checkout +cd linuxcontainers.org +git sparse-checkout set --no-cone +echo -e '/*\n!downloads' > .git/info/sparse-checkout git checkout main -git pull -mkdir -p downloads/cgmanager/ -mkdir -p downloads/distrobuilder/ -mkdir -p downloads/lxc/ -mkdir -p downloads/lxcfs/ +mkdir -p downloads/{incus,lxc,lxcfs,distrobuilder,cgmanager} ``` ### Generating the website