From 689a17cfc40b9b3795a3d25507b61e4a02ae8096 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sat, 6 Feb 2021 19:55:28 +0100 Subject: [PATCH 1/2] conditionally link about.html --- gitolite-pystagit/bin/build-pystagit-repo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gitolite-pystagit/bin/build-pystagit-repo b/gitolite-pystagit/bin/build-pystagit-repo index 3b6ca82..34235ae 100644 --- a/gitolite-pystagit/bin/build-pystagit-repo +++ b/gitolite-pystagit/bin/build-pystagit-repo @@ -20,7 +20,11 @@ run_pystagit () { mkdir -p "${out_dir}" && \ cd "${out_dir}" && \ /usr/bin/pystagit "${repo_dir}" && \ - ln -sf files.html index.html + if [ -f about.html ]; then + ln -sf files.html index.html + else + ln -sf log.html index.html + fi } set_url () { From d4ecf85cfe564d7763a5c6a8d31b07cd926cb9d0 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sat, 6 Feb 2021 20:31:19 +0100 Subject: [PATCH 2/2] conditionally link about.html --- gitolite-pystagit/bin/build-pystagit-repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitolite-pystagit/bin/build-pystagit-repo b/gitolite-pystagit/bin/build-pystagit-repo index 34235ae..721e5e5 100644 --- a/gitolite-pystagit/bin/build-pystagit-repo +++ b/gitolite-pystagit/bin/build-pystagit-repo @@ -21,7 +21,7 @@ run_pystagit () { cd "${out_dir}" && \ /usr/bin/pystagit "${repo_dir}" && \ if [ -f about.html ]; then - ln -sf files.html index.html + ln -sf about.html index.html else ln -sf log.html index.html fi