summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-01-23 19:50:06 +0100
committerLinnnus <[email protected]>2025-01-23 19:50:06 +0100
commita5aa6f36856037a66765db90ca6550e10589f5f0 (patch)
tree31a207361a2bf2f63a22fdbcbaaf949310478495 /hosts
parent2d43072721da049e3e4b46a42899d93396500e82 (diff)
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.
Diffstat (limited to 'hosts')
-rw-r--r--hosts/ahmed/linus.onl/default.nix2
1 files changed, 1 insertions, 1 deletions
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}
'';