From a5aa6f36856037a66765db90ca6550e10589f5f0 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 23 Jan 2025 19:50:06 +0100 Subject: linus.onl: Clone full git history when building site Since the build script uses commit dates to infer authoring dates, a shallow clone makes all posts appear to have been published at the time of the most recent commit. --- hosts/ahmed/linus.onl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/ahmed/linus.onl/default.nix b/hosts/ahmed/linus.onl/default.nix index f176228..b363bb1 100644 --- a/hosts/ahmed/linus.onl/default.nix +++ b/hosts/ahmed/linus.onl/default.nix @@ -63,7 +63,7 @@ in { tmpdir="$(mktemp -d -t linus.onl-source.XXXXXXXXXXXX)" cd "$tmpdir" trap 'rm -rf $tmpdir' EXIT - git clone --depth=1 --branch=${mainBranch} https://github.com/linnnus/${domain} . + git clone --branch=${mainBranch} --filter=blob:none https://github.com/linnnus/${domain} . make _build rsync --archive --delete _build/ /var/www/${domain} ''; -- cgit v1.2.3